Q:

add 1 to all elements in list python

lst = [1,2,3]
list(map(lambda x:x+1, lst))
2

New to Communities?

Join the community