lst = [1, 2, 3, 4]
lst1 = [5, 6, 7, 8]
pairs = [(i, j) for i in lst for j in lst1]
print(pairs)

1b1df43a87416a1178d048d52b50ab54733a8cd3
<mask token>

<mask token>
print(pairs)

lst = [1, 2, 3, 4]
lst1 = [5, 6, 7, 8]
pairs = [(i, j) for i in lst for j in lst1]
print(pairs)
