Aug-06-2018, 11:50 AM
You don't need the lambda:
dc = [random.choice(colors) for color in range(10)]The first part of the list comprehension is evaluated for each pass of the loop. Note that in your code, it is just evaluating the creation of a lambda.
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