Exercise: Create lambda function II
Here, we create a lambda function that adds two arguments
x
and y
. However, something's missing. Adjust the code to generate the expected output.
### adjust here ###
lambda x, y: x + y
print(add(3, 3)) # expected 6
print(add('New', 'York')) # expected 'NewYork'
Python
Setting up Python environment...
Output