mebipenny/pendlepants/pendlepants.py

10 lines
170 B
Python
Raw Normal View History

2012-09-08 09:19:32 -07:00
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)