How to Use Lambda Function in Python


In this example, we will learn how to use the lambda function in Python.

Source Code

n = lambda x: x + 1
print(n(10))

Output:

11
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement