Solution Review: Updating Outer Scope Values
We'll cover the following...
Let’s look at the solution to the challenge in the previous lesson.
Solution
Press + to interact
#var = 9def update_var(value):global varvar = valuereturn varprint(update_var(6))print(var)
Explanation
- While we