Pregunta de entrevista de AMERGINT Technologies Inc

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

Respuesta de la entrevista

Anónimo

28 ago 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.