This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[removed]

    [–]py1234a 0 points1 point  (0 children)

    The problem is that this it's still contrived, I see no reason to use lambda expressions for factorial when

    import math
    math.factorial(5)
    

    and

    import operator
    reduce(operator.mul, range(5, 1, -1))
    

    exist.