Correctly Access Local Variable

Adjust the code below so that it correctly prints the value of the local variable num.
def my_function(): num = 100
print(num)
my_function() # expected output: 100
Python
Setting up Python environment...
Output