Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Quiz:
- _questions = {
- "A question?": [
- "An option",
- "Another option",
- "A third option",
- "The fourth option",
- "b", # This indicates that "Another option" is correct.
- # It says you could also copy "Another option" in here
- ],
- "Another question?": [
- ]
- }
- #Constructor / Initializer
- def __init__(self, score:int, correctTotal:int, incorrectTotal:int):
- self.__score = score #Score
- self.__correctTotal = correctTotal #Total Correct
- self.__incorrectTotal = incorrectTotal #Total Incorrect
- #Instantation
- score = Quiz(0)
- correctTotal = Quiz(0)
- incorrectTotal = Quiz(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement