title: Verify Username and Password Input in Python
body: <p>I need to make a program where I once input username and password, It will verify the input by asking for my username and password again and making me repeat it if it doesn't match. I am stuck on the code below and have no idea how to fix it. Help!</p>
  
  <pre><code>import time
  complete = False
  user = [["username",""],["password",""]]
  
  def Access():
      for n in range (len(user)):
          user[n][1] = input(user[n][0])
  
  while not complete:
      Access()
      username = input("What is the username?")
      password = input("What is the password?")
  
      if username == user[n][0]:
          print("Good!")
      else:
          print("Input username again!")
      if password == user[n][1]:
          print("User has been identified, Welcome",username)
      else:
          print("Input password again")
  </code></pre>