我是 python 新手,目前正在上课,我的程序看起来像:
if choice=="1":
def addition():
print("You are doing addition. X+Y=Z")
X = int(input("Enter X:"))
Y = int(input("Enter Y:"))
sum = X + Y
print ("your total is:")
print (sum)
Well = "y"
while Well == "y":
again = input("Would you like to go again? (y/n)")
if again == "y":
addition()
if again == "n":
project()
else:
print("sorry re-enter choice")
在显示实际添加部分之前,它会询问我是否要再去一次。我该如何解决?谢谢你的帮助 :)