Scoping - 3

Run Settings
LanguagePython
Language Version
Run Command
#x = 1 def a(): #global x #print(x+1) # global x x = 1 y = 2 def b(): nonlocal y # y is not global, y is also not local, so must specify here y = y + 1 print(y,x) b() print(y) a() #print(x)
Editor Settings
Theme
Key bindings
Full width
Lines