Nov-15-2019, 04:31 PM
I would say that is not necessarily correct. People fall in love with list comprehensions, but they can get overly complicated. If I can't fit a list comprehension onto one line (without abbreviating all of my variable names to single letters), I make a for loop. That depends on how you define "one line," but I think it's a good rule of thumb.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures