From bab0b0a2fe8b3aad853740750d4873fb929f5f41 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 7 Oct 2015 16:07:05 +0200 Subject: Remove bold text since it looked strange. --- python/problems/while_and_if/top_shop/common.py | 2 +- python/problems/while_and_if/top_shop/sl.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'python/problems/while_and_if/top_shop') diff --git a/python/problems/while_and_if/top_shop/common.py b/python/problems/while_and_if/top_shop/common.py index 115dc9e..887d43e 100644 --- a/python/problems/while_and_if/top_shop/common.py +++ b/python/problems/while_and_if/top_shop/common.py @@ -55,7 +55,7 @@ def test(python, code): n_correct = 0 tin = None for i, (output, correct) in enumerate(zip(outputs, test_out)): - if all(string_almost_equal(output, correct[i]) for i in range(2)): + if all(string_almost_equal(output, correct[i], prec=2) for i in range(2)): n_correct += 1 else: tin = test_in[i][1] diff --git a/python/problems/while_and_if/top_shop/sl.py b/python/problems/while_and_if/top_shop/sl.py index ee9d02d..b577633 100644 --- a/python/problems/while_and_if/top_shop/sl.py +++ b/python/problems/while_and_if/top_shop/sl.py @@ -24,7 +24,7 @@ Poprečna cena: 2.33333333333 ''' main_plan = ['''\ -

Plan:

+

Plan:

 1. Ponavljaj dokler je cena večja od 0:
     2. Preberi ceno.
@@ -94,7 +94,8 @@ while cena != 0:
     ...'''],
 
     'final_hint': ['''\
-

Odlično! Kaj bi pa moral narediti, da bi število -1 pomenilo konec?

''', +

Odlično, program je pravilen!
+Kaj bi pa moral narediti, da bi število -1 pomenilo konec?

''', '''\

Spremeniti pogoj in paziti, da se vrednost -1 ne prišteje vsoti!

'''], -- cgit v1.2.1