Sollicitatievraag bij AMERGINT Technologies Inc

In Python, what is a lambda function and how do you use it?

Antwoord op sollicitatievraag

Anoniem

28 aug 2021

A lambda function is a piece of syntactic sugar that lets you declare an anonymous function pretty much anywhere you might need one. They are limited though, and it is difficult to fit much complicated logic into them so I only use them when I can't easily eliminate the need.