This website works better with JavaScript.
Home
Help
Sign In
sm
/
mebipenny
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Activity
Browse Source
pendlepants solution
master
Stephen McQuay
8 years ago
parent
cf17dc32c9
commit
682b2825da
2 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
pendlepants/pendlepants.py
+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
Write
Preview
Loading…
Cancel
Save