May-01-2018, 05:08 PM
Line 8 is calling quiz, the function that it's part of, (this is called recursion),
to avoid this, your while statement needs to encompass everything from answer to the end like:
Thank you!
It worked. Now I have to get familiar with the None keyword.
to avoid this, your while statement needs to encompass everything from answer to the end like:
def quiz(question, solution): answer = None while answer is None: answer = input("State the solution to the quiz: ") if answer != solution: print("Wrong Answer!\nTry again...\n") answer = None return True[/quote]
Thank you!
It worked. Now I have to get familiar with the None keyword.