From: W. Trevor King Date: Tue, 5 Feb 2013 14:34:03 +0000 (-0500) Subject: Visually separate the results from the questions X-Git-Tag: v0.1~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=49bc134c89f45195b1696d7cfff1c95fce619551;p=quizzer.git Visually separate the results from the questions --- diff --git a/quizzer/ui/cli.py b/quizzer/ui/cli.py index 12b85bd..385a9a4 100644 --- a/quizzer/ui/cli.py +++ b/quizzer/ui/cli.py @@ -12,6 +12,7 @@ class CommandLineInterface (UserInterface): answer = input('? ') a = answer.strip().lower() if a in ['q', 'quit']: + print() return if a in ['?', 'help']: print() @@ -26,6 +27,7 @@ class CommandLineInterface (UserInterface): print('incorrect\n') def display_results(self): + print('results:') for question in self.quiz: if question in self.answers: for answer in self.answers[question]: