Concept Flow - Nonlocal keyword
Define outer function
Define inner function
Inner function uses 'nonlocal'
Modify outer variable
Call inner function
Outer variable changed
Return or print result
The flow shows how an inner function accesses and changes a variable from its outer function using 'nonlocal'.