We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71618f commit 76b47caCopy full SHA for 76b47ca
maths/factorial.py
@@ -41,7 +41,7 @@ def factorial_recursive(n: int) -> int:
41
https://en.wikipedia.org/wiki/Factorial
42
43
>>> import math
44
- >>> all(factorial(i) == math.factorial(i) for i in range(20))
+ >>> all(factorial_recursive(i) == math.factorial(i) for i in range(20))
45
True
46
>>> factorial(0.1)
47
Traceback (most recent call last):
0 commit comments