I have just started learning python. I came across lambda functions. On one of the problems, the author asked to write a one liner lambda function for factorial of a number.
Very nicely explained! Only one minor fix: if b > 1 NOT if b > 0
The result is the same but logically more correct as it is executing one unnecessary additional loop (even though multiplying by 1)
Wikipedia => n!, is the product of all positive integers less than or equal to n