You are viewing a single comment's thread. Return to all comments →
a, b = list(map(int, input().split())), list(map(int, input().split())) l = [(x, y) for x in a for y in b] print(*l)
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 →