Skip to content

Commit c11bd85

Browse files
committed
return variable change in the program of factorial
1 parent ba3b52d commit c11bd85

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

python_programming/Program1.1_Factorial_of_Number.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import os
2-
31
def factorial(num):
4-
result_num = ''
52
if num < 0:
63
result_num = 0
74
elif num == 0 or num == 1:
@@ -12,7 +9,6 @@ def factorial(num):
129
fact *= num
1310
num -= 1
1411
result_num = fact
15-
1612
return result_num
1713

1814
def main():

0 commit comments

Comments
 (0)