From 7e3c3602f1c1619fc1666bc2a21179530a99f3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mo=C5=BEina?= Date: Mon, 28 Dec 2015 10:59:12 +0100 Subject: Added basic plans to three problems. --- python/problems/functions/divisors/sl.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'python/problems/functions/divisors') 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 = '''\

Napiši funkcijo divisors(n), ki izpiše vse delitelje števila (brez samega sebe), ki ga vnese uporabnik.

''' -plan = [] +div_modulo = [ + '''\ +

Število a deli število b, če je ostanek +pri deljenju števil enak 0.

''', + '''\ +
+if b % a == 0: 
+
'''] + +plan = [ + '''\ +

Za vsa cela števila, ki so manjša od n, preveri, +če delijo n. Če delijo, jih izpiši.

''', + div_modulo] hint = { 'final_hint': ['''\ -- cgit v1.2.1