Skip to content
Snippets Groups Projects
Commit fdc45e19 authored by thomaskmatthew's avatar thomaskmatthew
Browse files

print statment now keeps in track of the total score

parent 786f9f60
No related branches found
No related tags found
No related merge requests found
......@@ -110,8 +110,10 @@ class QuizzerApp(App):
question = self.questions[-1] if len(self.questions) > 0 else QuizzerApp.DEFAULT_QUESTION
self.paused = True
self.correct = answer == question[2]
if self.correct:
print("You got it correct")
self.score += 1
print(f'You got it correct, number of right are: {self.score}')
Clock.schedule_once(lambda delta: self.unpause(), PAUSE_TIME)
def unpause(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment