<filename>02_sequences/0201_listcomp/020103_cartesian/__main__.py
colors = ['black', 'white']
sizes = ['S', 'M', 'L']

tshirts = [
    (color, size)
    for color in colors
    for size in sizes
]

print(f"Cartesian products from {colors} and {sizes}: {tshirts}")

<filename>02_sequences/0201_listcomp/020103_cartesian/__main__.py
colors = ['black', 'white']
sizes = ['S', 'M', 'L']

tshirts = [
    (color, size)
    for color in colors
    for size in sizes
]

print(f"Cartesian products from {colors} and {sizes}: {tshirts}")
