Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
add 1 to all elements in list python
DonDominic
Programming language:
TypeScript
2021-04-20 22:58:19
0
Q:
add 1 to all elements in list python
user32250
Code:
TypeScript
2021-09-25 08:26:13
lst = [1,2,3] list(map(lambda x:x+1, lst))
2
Tags
python
list
element
add
Related
python add elements of two lists together
New to Communities?
Join the community