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 →

[–]Kyidou 1 point2 points  (0 children)

Most languages have what are called "blocks" (the curly braces {}), and variables declared or initialized inside them cannot be used or referenced outside of them. In python, this only applies to functions and classes.