Python генерирует кортеж из списков

# you may want to check itertools.product
from itertools import product
l1 = [0, 1]
l2 = [2, 3]
for x in product(l1, l2, repeat = 1):
    print(x)
>>>
(0, 2)
(0, 3)
(1, 2)
(1, 3)
wolf-like_hunter