5. Write a python program to generate a lambda function that able to add a number of 20.
The output is:
Input number: 10
Expected Answer:
After adding 10: 30
Sample Answer:
input_number = lambda a : a + 20 print("After adding 10:", input_number(10))
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)