Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import time
  2. complete = False
  3. user = [["username",""],["password",""]]
  4.  
  5. def Access():
  6. for n in range (len(user)):
  7. user[n][1] = input(user[n][0])
  8.  
  9. while not complete:
  10. Access()
  11. username = input("Reinput the username?")
  12. password = input("Reinput the password?")
  13.  
  14. if username == user[0][0]:
  15. print("Good!")#what i want it to print if correct
  16. else:
  17. print("Input details again!")#what it keeps printing no matter what
  18. if password == user[1][1]:
  19. print("User has been identified, Welcome", username)
  20. complete = True
  21. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement