Advertisement
Guest User

Untitled

a guest
Sep 4th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. import time
  2.  
  3. def Scenario2():
  4.  
  5. film_comedy = ['Anchorman','The Hangover','Ted']
  6. film_horror = ['The Exorcist','The Shining','Scream']
  7. film_action = ['Die Hard','The Matrix','Batman']
  8. film_animation = ['Toy Story','The Incredibles','The Lion King']
  9.  
  10. print("Hello, welcome to the online streaming service")
  11. username = len(input("Please Enter a username between 4 and 12 characters: "))
  12.  
  13. while username < 4 or username > 12:
  14. print("That username is not within the boundaries")
  15. username = len(input("Please Enter a username between 4 and 12 characters: "))
  16.  
  17. password = input("Now enter a password: ")
  18. password1 = input("Please re-enter the password: ")
  19.  
  20. if password1 == password:
  21. print("Congratualtions on your new account")
  22.  
  23.  
  24. while password1 != password:
  25.  
  26. print("They don't match")
  27. password = input("Now enter a password: ")
  28. password1 = input("Please re-enter the password: ")
  29.  
  30. if password1 == password:
  31. print("Congratualations on your new account")
  32.  
  33.  
  34. usernameinput = input("Please Enter your username: ")
  35.  
  36. if usernameinput == username:
  37.  
  38. print("Great job")
  39.  
  40. while usernameinput != username:
  41.  
  42. print("That is the incorrect Username")
  43. usernameinput = input("Please Enter your username: ")
  44.  
  45. if usernameinput == username:
  46. print("Great job")
  47.  
  48.  
  49. Scenario2()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement