Sep-29-2016, 03:29 PM
It's useful for times when you need some sort of a callable parameter, but you don't actually care about what the param is, or you only need to do something very simple and creating a named function is not needed. Like event handlers. Here's some pseudocode to illustrate:
MyButton.onclick(lambda: print('testing'))In python, lambdas are very limited to the point of being almost completely worthless (only one line, can't have multiple statements, can't assign to variables, etc). In other languages (such as ruby or javascript), they are used very, very extensively in almost every package. Because they're so limited in python, you could just never use them, and not be missing anything important.