title: My while loop keeps looping keeps repeating even when the user inputs the correct information
body: <p>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.</p>
  
  <pre><code>admin_password = input("To view a user's details, enter the admin pasword: ")
  while True:
      if admin_password != "AdminLogin":
          print("Incorrect password")
      else:
          break
  </code></pre>