The Python Oracle

Is it possible to modify a variable in python that is in an outer (enclosing), but not global, scope?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Is It Possible To Modify A Variable In Python That Is In An Outer (Enclosing), But Not Global, Scope
00:48 Accepted Answer Score 237
01:35 Answer 2 Score 27
01:54 Answer 3 Score 14
02:19 Answer 4 Score 1
02:32 Answer 5 Score 1
03:55 Thank you

--

Full question
https://stackoverflow.com/questions/8447...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #pythonnonlocal

#avk47