Pergunta de entrevista da empresa AMERGINT Technologies Inc

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

Resposta da entrevista

Sigiloso

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