[Solved] How do I make my if statement actually do something


def attempt_function():
    number_of_attempts = 0
    saidpassword = ""
    
    while saidpassword != password:
        number_of_attempts + 1
        saidpassword = input("the password you entered is incorrect, please try again\n")
        if number_of_attempts > 3:
            print("You have entered the wrong password too many times, please try again later")
            break
        saidpassword = input("the password you entered is incorrect, please try again\n")

You will need a while loop to increase the number of attempts

solved How do I make my if statement actually do something