iNTERFACEWARE Products Manual > Learning Center > Learning Python > Functions and Global Variables > Local and Global Variables > Classifying Variables |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
At this point, you might be wondering: how does Python know whether a variable used inside a function is a global variable or a local variable? Here are the rules that Python uses:
See Sample Code for an illustration of these rules.
|