Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Score = 0
- Difficulty = input("Please select a difficulty: ")
- if Difficulty == "Easy":
- text_file = open("mathsquestionseasy.txt", "r")
- Q1 = input(text_file.readline())
- A1 = text_file.readline()
- A2 = text_file.readline()
- A3 = text_file.readline()
- if Q1 == A1:
- print("Well Done!")
- Score += 1
- if Q1 == A2:
- print("Well Done!")
- Score += 1
- if Q1 == A3:
- print("Well Done!")
- Score += 1
- else:
- print("Wrong")
- print(Score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement