Ok, I am creating a memory game. I have developed where the programme asks the user what word was removed, and have successfully developed the part that moves on if they get it right. However, I am struggling to find how to get it to only fail the user if they get it wrong three times. Here's what I have so far:
def q1():
    qone + 1
    print("\n"*2)
    while qone <= 3:
        question1 = input("Which word has been removed? ")
        if question1 == removed:
            print("\n"*1)
            print("Correct")
            print("\n"*2)
            q2()
        else:
            print("Incorrect")
            q1()
    else:
        print("You're all out of guesses!")
        input("Press enter to return to the menu")
        menu()
    return
`
 
     
     
     
    