add value in between all values of 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: python add all values of another list
a = [1, 2, 3]
b = [4, 5, 6]
a += b
# another way: a.extend(b)