p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Functions II
Correctly Access Local Variable
Correctly Access Local Variable
Adjust the code below so that it correctly prints the value of the local variable
num
.
reset
def my_function(): num = 100
print(num)
my_function() # expected output: 100
Python
Setting up Python environment...
Output