Skip to content

Commit 7006e16

Browse files
authored
Updated factorial.py
removed int(n), this is not required.
1 parent b78f3f6 commit 7006e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

factorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def factorial(n):
2323
2424
Let's code it:
2525
"""
26-
if n>=0 and int(n)==n:
26+
if n>=0 :
2727
print(math.factorial(n))
2828
else:
2929
print("Value of n is inValid!")

0 commit comments

Comments
 (0)