You are viewing a single comment's thread. Return to all comments →
if __name__=='__main__': A,B = tuple(map(int,input().split())),tuple(map(int,input().split())) for x in A: for y in B: print((x,y),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 →