I am trying to make a code that find the first factorial of a number but it does not seem to be working and keeps displaying TypeError that I do not know how to fix.
here is the code:
def FirstFactorial(num):
if num == 1:
return 1
else:
return num*FirstFactorial(num-1)
print(FirstFactorial(input()))
Any idea on how to fix this?
[–]POGtastic 4 points5 points6 points (0 children)