diff options
Diffstat (limited to 'python/problems/recursion/find_sum/sl.py')
-rw-r--r-- | python/problems/recursion/find_sum/sl.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/python/problems/recursion/find_sum/sl.py b/python/problems/recursion/find_sum/sl.py new file mode 100644 index 0000000..00aad43 --- /dev/null +++ b/python/problems/recursion/find_sum/sl.py @@ -0,0 +1,28 @@ +import server +mod = server.problems.load_language('python', 'sl') + +id = 20809 +name = 'Išči vsoto' + +description = '''\ +<p> +Napiši funkcijo <code>find_sum(xs, gs)</code>, ki kot argument prejme seznam +pozitivnih števil in število, ki predstavlja ciljno vsoto. Funkcija vrne +<code>True</code>, kadar lahko sestavimo ciljno vsoto iz števil v seznamu. </p> + +<pre> +>>> find_sum([2,7,3,1,4], 10) +True +>>> find_sum([2,3,2,4], 10) +False +</pre> +''' + +plan = [] + +hint = { + 'final_hint': ['''\ +<p>Program je pravilen! <br> +</p> +'''] +} |