Ques 1 Lambda Function
Which of the following is false about the lambda function?
Ques 2 Lambda Function
What is the output of the following Python Code?
li=[1,2,3,4,5,6,7,8,9,10] filter_list=list(filter(lambda a: a%2==0,li)) print("Filter List:",filter_list)
Ques 3 Lambda Function
What is the output of the following Python Code?
from functools import reduce li=[1,2,3,4,5,6,7,8,9,10] red=reduce((lambda a,b: a*b),li) print("Result:",red)
Ques 4 Lambda Function
What is the output of the following Python Code?
li=[1,2,3,4,5,6,7,8,9,10] new_list=list(map(lambda a: a**2,li)) print("New List:",new_list)