From f01bc0b07918ff0a7c9c4a3ff13f4d91cfe74e46 Mon Sep 17 00:00:00 2001 From: dbanks4 <dbanks4@huskers.unl.edu> Date: Fri, 21 Jul 2023 20:10:20 -0500 Subject: [PATCH] checkpoint 6 --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 6bcf4cd..c1299b9 100644 --- a/main.py +++ b/main.py @@ -132,6 +132,13 @@ class QuizzerApp(App): if len(self.questions) == 0: self.reshuffle() + def reset_quiz(self): + # Reset user's score and progress + self.paused = False + self.score = 0 + self.answered_questions = 0 + self.total_questions = 5 + if __name__ == '__main__': app = QuizzerApp() -- GitLab