Skip to content

Commit 53df61e

Browse files
committed
Added progress percentage to Python 3 runner to be consistent with Py2
1 parent 3ce0bbc commit 53df61e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python3/runner/sensei.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ def scrapeInterestingStackDump(self, err):
167167
return stack_text
168168

169169
def report_progress(self):
170-
return "You have completed {0} koans and " \
171-
"{1} lessons.".format(
170+
return "You have completed {0} ({2} %) koans and " \
171+
"{1} (out of {3}) lessons.".format(
172172
self.pass_count,
173-
self.lesson_pass_count)
173+
self.lesson_pass_count,
174+
self.pass_count*100//self.total_koans(),
175+
self.total_lessons())
174176

175177
def report_remaining(self):
176178
koans_remaining = self.total_koans() - self.pass_count

0 commit comments

Comments
 (0)