I know the site has some answered strings about my query but they don't help. I am making this program where the admin knows the password and when asked for the password if the password is wrong it will ask them to enter the password until they get it correct.
admin_password = input("To view a user's details, enter the admin pasword: ")
while True:
if admin_password != "AdminLogin":
print("Incorrect password")
else:
break