I am doing a python project for my university and in the project I have a login information with user and password, but I want that if the user is wrong, the code repeats again and if the user is correct, the code pass and same case with password if password is wrong code starts from zero and if password is correct code continues with rest but i dont know how can i do this so please help and Thank you very much for the help.
User=input("Type the User: ")
if User=="Admin":
print("User correct")
Password=input("Type the password: ")
else:
print("User incorrect")
#In here if the user are incorrect, I need the firts starover
if Password=="admin":
print("Nice, continue")
else:
print("Wrong password")
#In here if the password are incorrect, I need the other starover.