Guest User

Untitled

a guest
Nov 17th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. user1 = "Jeff"
  2. user2 = "Bob"
  3.  
  4. password1 = "Password"
  5. password2 = "Lol"
  6.  
  7. username = input("Login: >> ")
  8. password = input("Password: >> ")
  9.  
  10. if username == user1:
  11. if password == password1:
  12. print ("Access granted")
  13. print ("Welcome to the system!")
  14. home()
  15.  
  16. else:
  17. print ("Access denied")
  18. print ("Try again!")
  19. print ("n")
  20. time.sleep(2)
  21. login()
  22.  
  23. elif username == user2:
  24. if password == password2:
  25. print ("Access granted")
  26. print ("Welcome to the system!")
  27. home()
  28. else:
  29. print ("Access denied")
  30. print ("Try again!")
  31. print ("n")
  32. time.sleep(2)
  33. login()
  34.  
  35. else:
  36. print ("Access denied")
  37. print ("Try again!")
  38. print ("n")
  39. time.sleep(2)
  40. login()`
Add Comment
Please, Sign In to add comment