nonlocal example

Run Settings
LanguagePython
Language Version
Run Command
# This is in regards to Scope def outer(): x = 'local' def inner(): # nonlocal x # toggle the comment hash to see the difference x = 'nonlocal' print('inner: ', x) inner() print('outer: ', x) outer() #1 - start with local #2 - Parent local? #3 - Global
Editor Settings
Theme
Key bindings
Full width
Lines