Challenge - #28 - itertools.product()

 # Enter your code here. Read input from STDIN. Print output to STDOUT

from itertools import product

A = list(map(intinput().split()))
B = list(map(intinput().split()))

for i in list(product(A,B)):
    print(i, end = ' ')

Comments

Popular posts from this blog

Challenge - #48 - Incorrect Regex

Challenge - #43 - Time Delta

Challenge - #52 - Set .discard(), .remove(), & .pop()