Advertisement
Guest User

Untitled

a guest
Dec 17th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. class Quiz:
  2.  
  3. _questions = {
  4. "A question?": [
  5. "An option",
  6. "Another option",
  7. "A third option",
  8. "The fourth option",
  9. "b", # This indicates that "Another option" is correct.
  10. # It says you could also copy "Another option" in here
  11. ],
  12. "Another question?": [
  13. ]
  14. }
  15. #Constructor / Initializer
  16. def __init__(self, score:int, correctTotal:int, incorrectTotal:int):
  17. self.__score = score #Score
  18. self.__correctTotal = correctTotal #Total Correct
  19. self.__incorrectTotal = incorrectTotal #Total Incorrect
  20.  
  21. #Instantation
  22. score = Quiz(0)
  23. correctTotal = Quiz(0)
  24. incorrectTotal = Quiz(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement