Exercise: Scope Hierarchy

Print the value of all three versions of x.
x = 10 def outer(): x = 20 def inner(): x = 30
inner()
outer()
Python
Setting up Python environment...
Output