Run
x = [1, 3, 5, 7] y = [2, 4, 6, 8] output = [(i,k) for i in x for k in y] print(output)
Output