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) )



50 views0 comments

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page