what is scope
scope dictates whether or not a variable/function is available in certain parts of the program
- scope rules apply to module/variable/function identifiers
Global scope
- use is discouraged
problems with global scope
global variable restrictions
2. cannot give new value to a global variable inside a function unlesss using global keyword
Constant identifiers
Important GV notes
- not really different from global scope but handled by python instead of programmer
local scope
ID()
use to test if variables are aliases
Important list/dict scope