Browse Source

pendlepants solution

master
Stephen McQuay 8 years ago
parent
commit
682b2825da
2 changed files with 12 additions and 0 deletions
  1. +9
    -0
      pendlepants/pendlepants.py
  2. +3
    -0
      pendlepants/stdin1.txt

+ 9
- 0
pendlepants/pendlepants.py View File

@ -0,0 +1,9 @@
import sys
from itertools import product
options = []
for line in sys.stdin:
options.append(line.strip().split())
for i in product(*options):
print ' '.join(i)

+ 3
- 0
pendlepants/stdin1.txt View File

@ -0,0 +1,3 @@
pendlepants turqoise
prison-stripe mesh
waldo horn-rim

Loading…
Cancel
Save