Guest User

Untitled

a guest
Dec 14th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. ##TESTING
  2. import time
  3.  
  4. def register():
  5. Register = True
  6. print("Please enter the first 3 letters of your name and then your age")
  7. username = input()
  8. print("Hello",username)
  9. print("Now create a password")
  10. password = input()
  11. print("You are now being logged in!")
  12. time
  13. sleep(1)
  14.  
  15. def login():
  16. Login = True
  17.  
  18. print("What is your username?")
  19. username = input()
  20. print("Hello",username)
  21.  
  22. print("What is your password?")
  23. password = input()
  24. print("You are now being logged in!")
  25.  
  26. def difficulty():
  27. while 0==0:
  28. print("What difficulty would you like to take your quiz on?")
  29. answer = input()
  30. if answer == "Hard":
  31. print("Daredevil! Good luck!")
  32. import HardModeQuiz
  33. HardModeQuiz()
  34. break
  35. elif answer == "Medium":
  36. print("Good luck!")
  37. import MediumModeQuiz
  38. MediumModeQuiz()
  39. break
  40. elif answer == "Easy":
  41. print("Good luck!")
  42. import EasyModeQuiz
  43. EasyModeQuiz()
  44. break
  45. else:
  46. print("Invalid difficulty, choose either Hard, Medium or Easy")
  47.  
  48.  
  49. greetings = input("Welcome to Adam's Quiz (PRESS ENTER)")
  50. time.sleep(2)
  51.  
  52. print("What would you like to do?")
  53. print("1. Register")
  54. print("2. Login")
  55. print("3. Teachers Login")
  56. valid = False
  57. while valid==False:
  58. option = int(input("Enter which option you want: "))
  59. if option == 1 or option == 2 or option == 3:
  60. valid=True
  61.  
  62. if option == 1:
  63. register()
  64. elif option == 2:
  65. login()
  66.  
  67. # Defining Score variables
  68. x = 0
  69. score = x
  70.  
  71. #choose difficulty
  72. while 0==0:
  73. print("What difficulty would you like to take your quiz on?")
  74. answer = input()
  75. if answer == "Hard":
  76. print("Daredevil! Good luck!")
  77. import HardModeQuiz
  78. HardModeQuiz()
  79. break
  80. if answer == "Medium":
  81. print("Good luck!")
  82. import MediumModeQuiz
  83. MediumModeQuiz()
  84. break
  85. if answer == "Easy":
  86. print("Good luck!")
  87. import EasyModeQuiz
  88. EasyModeQuiz()
  89. break
  90. else:
  91. print("Invalid difficulty, choose either Hard, Medium or Easy")
Add Comment
Please, Sign In to add comment