Answers for "python list(mapt(lambda"

2

list map lambda python

li = [5, 7, 22, 97, 54, 62, 77, 23, 73, 61]
 
final_list = list(map(lambda x: x*2, li))
print(final_list)
Posted by: Guest on July-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language