Factorial returning None


When I print from my factorial i get the correct answer, but when I return, it returns None, why is that?


Sounds like you're mixing up the terms return and print.
If you are returning the result, then perhaps you would like to call the function and print the resulting value.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.