You are viewing a single comment's thread. Return to all comments →
from itertools import product
a_ = input().split() b_ = input().split()
xd_ = list(map(lambda x: tuple(int(elem) for elem in x),list(product(a_, b_)))) print(str(xd_).replace("[", "").replace("]", "").replace("),", ")"))
Seems like cookies are disabled on this browser, please enable them to open this website
itertools.product()
You are viewing a single comment's thread. Return to all comments →
from itertools import product
a_ = input().split() b_ = input().split()
xd_ = list(map(lambda x: tuple(int(elem) for elem in x),list(product(a_, b_)))) print(str(xd_).replace("[", "").replace("]", "").replace("),", ")"))