diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-07 08:34:21 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-07 08:34:21 +0200 |
commit | a451016b9efa919d7564fc75ab812052d1cd25f5 (patch) | |
tree | e4312f6e27916b24c5734e16455acfa77bd2aab4 /python/problems/introduction/ballistics | |
parent | 5a1b4202dfa99bb88fab6b1f23594bd2def811c6 (diff) |
Added final hints to ballistics and pythagorean.
Diffstat (limited to 'python/problems/introduction/ballistics')
-rw-r--r-- | python/problems/introduction/ballistics/common.py | 3 | ||||
-rw-r--r-- | python/problems/introduction/ballistics/sl.py | 8 |
2 files changed, 10 insertions, 1 deletions
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): diff --git a/python/problems/introduction/ballistics/sl.py b/python/problems/introduction/ballistics/sl.py index 9c0cb36..fa0fe5d 100644 --- a/python/problems/introduction/ballistics/sl.py +++ b/python/problems/introduction/ballistics/sl.py @@ -92,5 +92,11 @@ ki jo moramo najprej pretvoriti v tip <code>float</code>:</p> <pre> v = float(input(" ... </pre> -'''] +'''], + 'final_hint' : [ + '''\ +<p>Odlično, program deluje pravilno! <br> +Če želiš še kaj več izvedeti o <a href="https://en.wikipedia.org/wiki/Topology +">topologiji</a> ... </p>'''] + } |