You are viewing a single comment's thread. Return to all comments →
Here another slightly different approach:
from itertools import product A = map(int, input().split()) B = map(int, input().split()) aux = list(product(A,B)) output = " ".join(str(tup) for tup in aux) print(output)
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 →
Here another slightly different approach: