You are viewing a single comment's thread. Return to all comments →
from itertools import product a_list = [int(n) for n in input().split(' ')] b_list = [int(n) for n in input().split(' ')] print(' '.join(str(tup) for tup in product(a_list, b_list)))
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 →