Created
July 2, 2016 20:02
-
-
Save libert-xyz/207825ce408733bb1a00a6e1ad3484e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#7/2/16 | |
#https://www.hackerrank.com/challenges/itertools-product | |
from itertools import product | |
a = map(int,raw_input().split()) | |
b = map(int,raw_input().split()) | |
# ca = [(x,y) for x in a for y in b] | |
ca = (product(a,b)) | |
for i in ca: | |
print i, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment