0
def main():
    randOperation = Randomchoice(operation)

    while True:
        try:
            randOperation()
            randOperation = choice(operation)
            userAns=int(input("Answer: "))
            if userAns == answers:
                print("Correct!" + "\n")
                score = score + 1
                NumOfTries =NumOfTries + 1
            else:
                print("Incorrect!" + "\n")
                NumOfTries = NumOfTries + 1 #here is where the issue is
4

0 回答 0