The function call print(result(3,2))
is inside the function result
after return
(which also means it will never be reached). Simply move it out of the function
def result(num1,num2):
num3 = num1+num2
return num3
print(result(3,2)) # 1 Identation back
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…