You are viewing a single comment's thread. Return to all comments →
a=list(map(int,input().split())) b=list(map(int,input().split())) li=[] for i in a: for j in b: li.append((i,j)) for i in range(len(li)): print(li[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 →