diff options
author | Martin Možina <martin.mozina@fri.uni-lj.si> | 2015-12-28 10:59:12 +0100 |
---|---|---|
committer | Martin Možina <martin.mozina@fri.uni-lj.si> | 2015-12-28 10:59:12 +0100 |
commit | 7e3c3602f1c1619fc1666bc2a21179530a99f3f1 (patch) | |
tree | 9e9daa3f800357a6d5bbcc0f6262bb5d850ae33f /python/problems/functions/divisors | |
parent | 165c7165bb2184c9c9e0576a074ba4f29052bf8f (diff) |
Added basic plans to three problems.
Diffstat (limited to 'python/problems/functions/divisors')
-rw-r--r-- | python/problems/functions/divisors/sl.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/python/problems/functions/divisors/sl.py b/python/problems/functions/divisors/sl.py index f0e25c4..b4f0070 100644 --- a/python/problems/functions/divisors/sl.py +++ b/python/problems/functions/divisors/sl.py @@ -12,7 +12,20 @@ description = '''\ <p> Napiši funkcijo <code>divisors(n)</code>, ki izpiše vse delitelje števila (brez samega sebe), ki ga vnese uporabnik.</p>''' -plan = [] +div_modulo = [ + '''\ +<p>Število <code>a</code> deli število <code>b</code>, če je ostanek +pri deljenju števil enak 0.</p>''', + '''\ +<pre> +if b % a == 0: +</pre>'''] + +plan = [ + '''\ +<p>Za vsa cela števila, ki so manjša od <code>n</code>, preveri, +če delijo <code>n</code>. Če delijo, jih izpiši. </p>''', + div_modulo] hint = { 'final_hint': ['''\ |