summaryrefslogtreecommitdiff
path: root/python/problems/functions/palindromic_numbers
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/functions/palindromic_numbers')
-rw-r--r--python/problems/functions/palindromic_numbers/sl.py26
1 files changed, 22 insertions, 4 deletions
diff --git a/python/problems/functions/palindromic_numbers/sl.py b/python/problems/functions/palindromic_numbers/sl.py
index 8d64bab..0ba6b2e 100644
--- a/python/problems/functions/palindromic_numbers/sl.py
+++ b/python/problems/functions/palindromic_numbers/sl.py
@@ -17,11 +17,29 @@ ki ga lahko dobimo kot produkt dveh tromestnih števil.
Vir: Project Euler, <a href="http://projecteuler.net/index.php?section=problems&id=4">Problem 4</a>.
</p>'''
-plan = ['''\
-<p></p>
-''',
+num_to_str = [
'''\
-<p></p>''']
+<p>Ali je niz palindrom, že znamo ugotoviti. To smo se naučili pri prejšnji nalogi.</p>''',
+ '''\
+<p>Kako bi spremenil število v niz?</p>''',
+ '''\
+<code>
+niz = str(stevilo)
+</code>''']
+
+double_loop = [
+ '''\
+<p>Preizkusiti moraš produkte vseh kombinacij tromestnih števil.</p>''',
+ '''\
+<p>Potrebna bo dvojna zanka.</p>''',
+ '''\
+<code>
+for st1 in range(100, 1000):
+ for st2 in range(100, 1000):
+</code>''']
+
+plan = [num_to_str,
+ double_loop]
hint = {
'final_hint': ['''\