In this example we will show how to use the lambda function with any number of arguments in Python.
Source Code
n = lambda x, y, z: x + y * z
print(n(10, 3, 8))
Output:
34
In this example we will show how to use the lambda function with any number of arguments in Python.
n = lambda x, y, z: x + y * z
print(n(10, 3, 8))
Output:
34
In this example we will show how to use the lambda function in Python.
n = lambda x: x + 1
print(n(10))
Output:
11