add to every element in list python code example
Example 1: add 1 to all elements in list python
lst = [1,2,3]
list(map(lambda x:x+1, lst))
Example 2: how to add a number to every element in a list python
new_list = [x+1 for x in my_list]
lst = [1,2,3]
list(map(lambda x:x+1, lst))
new_list = [x+1 for x in my_list]