You are viewing a single comment's thread. Return to all comments →
from itertools import product l1 = [] l2 = [] l1 = list(map(int,input().split())) l2 = list(map(int,input().split())) for i in product(l1, l2): print(i,end= " ")
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 →