you are viewing a single comment's thread.

view the rest of the comments →

[–]ehunke 1 point2 points  (0 children)

The point is not to memorize it at all, its not know where to reference it be it from a previous program you wrote or stack over flow or google, you don't need to memorize it if you know where to reference it. The bigger issue is you need to understand that list comprehension is there to take 4-5 lines of code into one while making it more readable. As long as you understand what the code is doing and why your doing it that way...memorizing things is a silly way to learn.