# lambda1.py to get square of each item in a list mylist = [1, 2, 3, 4, 5] new_list = list(map(lambda x: x*x, mylist)) print(new_list)