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