You are viewing a single comment's thread. Return to all comments →
from itertools import product A = list(set(map(int, input().split()))) B = list(set(map(int, input().split()))) AxB = list(product(A,B)) print(*AxB)
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 →