diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-06 17:58:54 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-06 17:58:54 +0200 |
commit | 5a1b4202dfa99bb88fab6b1f23594bd2def811c6 (patch) | |
tree | dc1ed85c4ab92079acc001f477e57766ed3b7758 /python/problems/introduction/fahrenheit_to_celsius/common.py | |
parent | a7ac5a3ce2c2ad4549fec5600acab90a4c823bda (diff) |
Changes some text descriptions and added a final hint to Fahrenheit.
Diffstat (limited to 'python/problems/introduction/fahrenheit_to_celsius/common.py')
-rw-r--r-- | python/problems/introduction/fahrenheit_to_celsius/common.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/problems/introduction/fahrenheit_to_celsius/common.py b/python/problems/introduction/fahrenheit_to_celsius/common.py index df426d3..6549c32 100644 --- a/python/problems/introduction/fahrenheit_to_celsius/common.py +++ b/python/problems/introduction/fahrenheit_to_celsius/common.py @@ -22,6 +22,7 @@ hint_type = { 'name_error': Hint('name_error'), 'unsupported_operand': Hint('unsupported_operand'), 'not_callable': Hint('not_callable'), + 'final_hint': Hint('final_hint'), } def test(python, code): @@ -58,6 +59,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): |