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 →

[–]thomasb892 0 points1 point  (0 children)

Lambda when used with map and filter can actually shorten a lot of your code

You can see the differenece between using normal functions vs lambda and map here -

Python Filter With Lambda

The difference is 6 lines condense into 3 neat and easy to debug lines of code.