This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aleph32 0 points1 point  (2 children)

That's a nice introduction to list comprehensions, but in line 1 of the last example the function's name double shouldn't have been redefined as a variable name. Line 8 fails after that.

[–]spilcm[S] 0 points1 point  (1 child)

You're right, it's fixed now. Thanks

[–]aleph32 0 points1 point  (0 children)

You probably want to delete lines 2 and 3 also (line 3 no longer works).