p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Functions II
Exercise: Scope Hierarchy
Exercise: Scope Hierarchy
Print the value of all three versions of
x
.
Premium
reset
x = 10 def outer(): x = 20 def inner(): x = 30
inner()
outer()
Python
Setting up Python environment...
Output