summaryrefslogtreecommitdiff
path: root/python/problems/introduction/ballistics
diff options
context:
space:
mode:
authorMartin <martin@leo.fri1.uni-lj.si>2015-10-06 17:58:54 +0200
committerMartin <martin@leo.fri1.uni-lj.si>2015-10-06 17:58:54 +0200
commit5a1b4202dfa99bb88fab6b1f23594bd2def811c6 (patch)
treedc1ed85c4ab92079acc001f477e57766ed3b7758 /python/problems/introduction/ballistics
parenta7ac5a3ce2c2ad4549fec5600acab90a4c823bda (diff)
Changes some text descriptions and added a final hint to Fahrenheit.
Diffstat (limited to 'python/problems/introduction/ballistics')
-rw-r--r--python/problems/introduction/ballistics/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/problems/introduction/ballistics/common.py b/python/problems/introduction/ballistics/common.py
index eaf230d..8773dab 100644
--- a/python/problems/introduction/ballistics/common.py
+++ b/python/problems/introduction/ballistics/common.py
@@ -66,7 +66,7 @@ def test(python, code):
'10.05',
'3.49',
'3.49',
- '13.94',
+ '13.96',
'0'
]
@@ -78,7 +78,7 @@ def test(python, code):
tin = None
for i, (output, correct) in enumerate(zip(outputs, test_out)):
print (output, float(correct))
- if string_almost_equal(output, float(correct)):
+ if string_almost_equal(output, float(correct), prec=2):
n_correct += 1
else:
tin = test_in[i][1].replace('\n', ' ')