#Lambda function to increment the items in list by 2 oldlist =[2,31,42,11,6,5,23,44] print( oldlist ) #Usage of lambda function newlist =list(map(lambda x: x+2,oldlist)) print(“List after incrementation by 2”) print( newlist ) Output [2,31,42,11,6,5,23,44] List after incrementation by 2 [4,33,44,13,8,7,25,46] lambda function 09-11-2021
[email protected] 6