summaryrefslogtreecommitdiff
path: root/python/problems/recursion
diff options
context:
space:
mode:
authorMartin Možina <martin.mozina@fri.uni-lj.si>2016-10-17 12:36:40 +0200
committerMartin Možina <martin.mozina@fri.uni-lj.si>2016-10-17 12:36:40 +0200
commitf12796f00b36d143d8e2735cbec988cad3a3e9e3 (patch)
tree3bef9014c68f2741ec3ffdd42c6bbc586e182cb1 /python/problems/recursion
parent6dbe02d844b81d455dda3086fc0f212f7abdca06 (diff)
Fixed "faktorial" typo bug.
Diffstat (limited to 'python/problems/recursion')
-rw-r--r--python/problems/recursion/factorial/sl.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/problems/recursion/factorial/sl.py b/python/problems/recursion/factorial/sl.py
index a0269e3..16f3603 100644
--- a/python/problems/recursion/factorial/sl.py
+++ b/python/problems/recursion/factorial/sl.py
@@ -6,18 +6,18 @@ name = 'Fakulteta'
description = '''\
<p>
-Napiši rekurzivno funkcijo <code>faktorial(n)</code>, ki izračuna n!.
+Napiši rekurzivno funkcijo <code>factorial(n)</code>, ki izračuna n!.
Funkcija je definirana z enačbama <code>0! = 1</code> in
<code>n! = n * (n - 1)!</code>.
Rešitev ne sme vsebovati zanke <code>for</code> ali zanke <code>while</code>.</p>
<pre>
->>> faktorial(0)
+>>> factorial(0)
1
->>> faktorial(1)
+>>> factorial(1)
1
->>> faktorial(5)
+>>> factorial(5)
120
->>> faktorial(20)
+>>> factorial(20)
2432902008176640000
</pre>
'''