top of page

What is lambda function in python?

Updated: Jan 28, 2023

A lambda function is an anonymous function. lambda function can have any number of arguments​ but can have only one expression.

square = lambda num : num * num print( square(5) )

48 views0 comments

Recent Posts

See All
bottom of page