Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 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("What is the username?")
  12. password = input("What is the password?")
  13.  
  14. if username == user[n][0]:
  15. print("Good!")
  16. else:
  17. print("Input username again!")
  18. if password == user[n][1]:
  19. print("User has been identified, Welcome",username)
  20. else:
  21. print("Input password again")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement