summaryrefslogtreecommitdiff
path: root/python/problems/recursion/factorial
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/recursion/factorial')
-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>
'''