closure e.g.

Run Settings
LanguagePython
Language Version
Run Command
def outer(): x = 'hello' def inner1(): x = 'python' def inner2(): nonlocal x x = 'monty' print('inner (before):', x) inner2() print('inner (after):',x) inner1() print('outer:', x) outer()
Editor Settings
Theme
Key bindings
Full width
Lines