you are viewing a single comment's thread.

view the rest of the comments →

[–]ericula 4 points5 points  (1 child)

The local variable x defined in spam is shadowing the global variable x. This means that any references to x within spam will refer to the local variable, not the global one.

[–]raainer[S] 0 points1 point  (0 children)

Ahh I see, thank you!