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