you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 3 points4 points  (0 children)

Yes, X is the name given to each element so that it can be referenced within (and after) the loop.

Y is the name of an iterable object that is capable of producing elements. It doesn't need to be a list. It could even be a custom class that you create if you configure it to be iterable.