Johannes Bauer wrote:
from itertools import product
a = { "a", "b", "c" }
b = { 4, 9, 13}
for (x, y) in product(a, b):
print(x, y)
Hi group,
>
if I remember correctly, wasn't there a way to quickly iterate through
nested loops? Something like
>
a = { "a", "b", "c" }
b = { 4, 9, 13}
for (x, y) in someoperator(a, b):
print(x, y)
>
if I remember correctly, wasn't there a way to quickly iterate through
nested loops? Something like
>
a = { "a", "b", "c" }
b = { 4, 9, 13}
for (x, y) in someoperator(a, b):
print(x, y)
a = { "a", "b", "c" }
b = { 4, 9, 13}
for (x, y) in product(a, b):
print(x, y)