def recursiveFactorial(number):
if number > 1:
return number * recursiveFactorial(number-1)
else:
return 1
stringNum = input("Enter a positive integer: ")
num = int(stringNum)
print(recursiveFactorial(num))
Have water by, have it organized, and have notes by you welcome.
Explanation: