A parameter is a local variable too
Predict the output · Medium · §8.5 Inside and outside a function
Predict the output without running the code.
Code
n = 1
def plus_five(n):
n = n + 5
return n
print(plus_five(n), n)Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.