2 ms·
may be trivial but to me it looks weird print aa for aa in someList means "print aa" is the body of the for loop in this case and not knowing python at all,
by zidar 15y ago
may be trivial but to me it looks weird
print aa for aa in someList
means "print aa" is the body of the for loop in this case and not knowing python at all, I thought it would be the same for more neste for loops
(print x for x in something) for something in somethingElse
anything else would just seem weird to me, but i guess that print x is actuall the body of both nested for loops.