Jul-18-2019, 05:13 AM
Because the value of
Since you have no return statement in your function, python returns
getFactorial(5)
is the one you return from the function.Since you have no return statement in your function, python returns
None
.