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