summaryrefslogtreecommitdiff
path: root/python/problems/functions/divisors
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/functions/divisors')
-rw-r--r--python/problems/functions/divisors/sl.py15
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': ['''\