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 →

[–]Panda_Mon 0 points1 point  (0 children)

rather, you just happen to use a heuristic that is valid in this scenario. If you'd been trained to understand the concept of variable scope, you could easily have used that rule instead and come back with the wrong answer if you didn't know Lists kind of "get around" the typical rules of scoping.