So im building a simple password checker in Python. In the code below, after returning the statment "Incorrect, try again." I want to the program to go back to the if statement so the user can retry entering their password.
#An extremly simply password checker.
#Retrieving desired password
upw = input("What would you like your password to be?: ")
#Checking Password
ask = input("Enter your password: ")
if str(ask) == str(upw):
print("Accsess Granted")
else:
print("Incorrect, try again.")