Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
### Use recursive lambda functions to define function with multiple arguments
add = lambda x: (lambda y: x + y)
# > 8
### Use normal function to do the same thing
def add(x, y):
return x + y
print(add(3, 5))
# > 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.