Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

lambda with two parameters

A lambda-function can have more than one parameters:

add = lambda x,y: x+y
print(add(2, 3))

Output:

5