# your code goes here def calcPower(m): n=2 #ローカル変数 v=n**m return v print(calcPower(3)) print(calcPower(4)) print(calcPower(5)) print(n)
Standard input is empty
8 16 32
Traceback (most recent call last): File "./prog.py", line 11, in <module> NameError: name 'n' is not defined