J
Johannes Bauer
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)
which would print all tuples of
"a", 4
"a", 9
"a", 13
"b", 4
"b", 9
"b", 13
"c", 4
"c", 9
"c", 13
(not nececssarily in that order, of course).
Thanks,
Johannes
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)
which would print all tuples of
"a", 4
"a", 9
"a", 13
"b", 4
"b", 9
"b", 13
"c", 4
"c", 9
"c", 13
(not nececssarily in that order, of course).
Thanks,
Johannes