Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,11 @@ def factorial(n :int ) -> int:
|
|
14 |
Args:
|
15 |
n: an int number to calculate factorial
|
16 |
"""
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
|
19 |
|
20 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
14 |
Args:
|
15 |
n: an int number to calculate factorial
|
16 |
"""
|
17 |
+
res = n
|
18 |
+
while n>1:
|
19 |
+
res=res*(n-1)
|
20 |
+
n=n-1
|
21 |
+
return res
|
22 |
|
23 |
|
24 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|