Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##TESTING
- import time
- def register():
- Register = True
- print("Please enter the first 3 letters of your name and then your age")
- username = input()
- print("Hello",username)
- print("Now create a password")
- password = input()
- print("You are now being logged in!")
- time
- sleep(1)
- def login():
- Login = True
- print("What is your username?")
- username = input()
- print("Hello",username)
- print("What is your password?")
- password = input()
- print("You are now being logged in!")
- def difficulty():
- while 0==0:
- print("What difficulty would you like to take your quiz on?")
- answer = input()
- if answer == "Hard":
- print("Daredevil! Good luck!")
- import HardModeQuiz
- HardModeQuiz()
- break
- elif answer == "Medium":
- print("Good luck!")
- import MediumModeQuiz
- MediumModeQuiz()
- break
- elif answer == "Easy":
- print("Good luck!")
- import EasyModeQuiz
- EasyModeQuiz()
- break
- else:
- print("Invalid difficulty, choose either Hard, Medium or Easy")
- greetings = input("Welcome to Adam's Quiz (PRESS ENTER)")
- time.sleep(2)
- print("What would you like to do?")
- print("1. Register")
- print("2. Login")
- print("3. Teachers Login")
- valid = False
- while valid==False:
- option = int(input("Enter which option you want: "))
- if option == 1 or option == 2 or option == 3:
- valid=True
- if option == 1:
- register()
- elif option == 2:
- login()
- # Defining Score variables
- x = 0
- score = x
- #choose difficulty
- while 0==0:
- print("What difficulty would you like to take your quiz on?")
- answer = input()
- if answer == "Hard":
- print("Daredevil! Good luck!")
- import HardModeQuiz
- HardModeQuiz()
- break
- if answer == "Medium":
- print("Good luck!")
- import MediumModeQuiz
- MediumModeQuiz()
- break
- if answer == "Easy":
- print("Good luck!")
- import EasyModeQuiz
- EasyModeQuiz()
- break
- else:
- print("Invalid difficulty, choose either Hard, Medium or Easy")
Add Comment
Please, Sign In to add comment