projects
/
quizzer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13125af
)
Visually separate the results from the questions
author
W. Trevor King
<wking@tremily.us>
Tue, 5 Feb 2013 14:34:03 +0000
(09:34 -0500)
committer
W. Trevor King
<wking@tremily.us>
Tue, 5 Feb 2013 14:34:03 +0000
(09:34 -0500)
quizzer/ui/cli.py
patch
|
blob
|
history
diff --git
a/quizzer/ui/cli.py
b/quizzer/ui/cli.py
index 12b85bd5b31fc5ab36f4f7ddb4b8a954cb2afeb5..385a9a4044ff51b4c78a79b60837a85a23656688 100644
(file)
--- 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]: