From a451016b9efa919d7564fc75ab812052d1cd25f5 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 7 Oct 2015 08:34:21 +0200 Subject: Added final hints to ballistics and pythagorean. --- python/problems/introduction/ballistics/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/problems/introduction/ballistics/common.py') diff --git a/python/problems/introduction/ballistics/common.py b/python/problems/introduction/ballistics/common.py index 8773dab..afb84b6 100644 --- a/python/problems/introduction/ballistics/common.py +++ b/python/problems/introduction/ballistics/common.py @@ -29,6 +29,7 @@ hint_type = { 'radians': Hint('radians'), 'printing': Hint('printing'), 'betterg': Hint('betterg'), + 'final_hint': Hint('final_hint') } def contains_negative(s): @@ -88,6 +89,8 @@ def test(python, code): hints = [{'id': 'test_results', 'args': {'passed': n_correct, 'total': len(test_in)}}] if tin: hints.append({'id': 'problematic_test_case', 'args': {'testin': str(tin), 'testout': str(tout)}}) + if passed: + hints.append({'id': 'final_hint'}) return passed, hints def hint(python, code): -- cgit v1.2.1