Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. print("Login.")
  2. name = input("Name: ")
  3. password = input("Password: ")
  4.  
  5. count = 1
  6. while count < 4 and name.lower() == "iita" and password.lower() == "life":
  7. print("Welcome back.")
  8. while name.lower() != "iita" or password.lower() != "life":
  9. print("Try again.")
  10. name = input("Name: ")
  11. password = input("Password: ")
  12.  
  13. if count >= 4:
  14. print("You have failed.")
  15.  
  16. print(" ")
  17. print(" ")
  18. print(" ")
  19.  
  20. guess = input("Guess my name: ")
  21. count == 0
  22. while count < 3 and guess.lower() != "iita":
  23. print("Wrong.")
  24. count = count + 1
  25. guess = input("Try again: ")
  26. if guess.lower() != "iita" and count >= 3:
  27. print("You are wrong.")
  28. print("You have failed.")
  29. while guess.lower() == "iita":
  30. print("You got it!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement