diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-08 12:02:43 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-08 12:02:43 +0200 |
commit | 45474b5c8cefa916aeb64e1c15a79f647a86d58c (patch) | |
tree | e8df83544ed4da18f1288fee3bf0506069eab4e8 /python/problems/lists_and_for/counting | |
parent | 1f9f6de923e4b490c42a44d660b3e32dbe11426e (diff) |
Added final hints.
Diffstat (limited to 'python/problems/lists_and_for/counting')
-rw-r--r-- | python/problems/lists_and_for/counting/sl.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/python/problems/lists_and_for/counting/sl.py b/python/problems/lists_and_for/counting/sl.py index 67dc323..c2fc820 100644 --- a/python/problems/lists_and_for/counting/sl.py +++ b/python/problems/lists_and_for/counting/sl.py @@ -80,11 +80,18 @@ hint = { 'print_out_for': ['''\ <p>Pazi, da izpišeš rezultat izven zanke!</p>'''], - 'final_hint:': ['''\ - <p>Nalogo lahko rešiš bistveno hitreje, če poznaš metodo <code>count</code></p> + 'final_hint': ['''\ +<p>Program je pravilen! <br> +Nalogo lahko rešiš hitreje, če poznaš metodo <code>count</code></p> <pre> - xs = [42, 5, 4, -7, 2, 12, -3, -4, 11, 42, 2] - print('Število 42 se v seznamu pojavi', xs.count(42), 'krat.') -</pre>'''] +xs = [42, 5, 4, -7, 2, 12, -3, -4, 11, 42, 2] +print('Število 42 se v seznamu pojavi', xs.count(42), 'krat.') +</pre>'''], + + 'problematic_test_case': ['''\ +<p>Program ne dela pravilno!<br> +Poskusi xs = [%=testin%] <br> +pravilen rezultat: [%=testout%]</p> +'''], } |