4 ms·
Slight nitpick: >> The list comprehension starts with a '[' and ']', to help you remember that the result is going to be a list. You wrap that in [] because y
by dizzystar 14y ago
Slight nitpick:
>> The list comprehension starts with a '[' and ']', to help you remember that the
result is going to be a list.
You wrap that in [] because you are creating a list. If you use () instead, you are creating a generator object.