Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
prepend pyhton list
english_curious
Programming language:
Whatever
2021-07-13 19:18:09
0
Q:
prepend pyhton list
V2Blast
Code:
Whatever
2021-08-25 15:11:23
# option 1 s.insert(0, x) # option 2 new_list = [x] + your_list
2
Tags
list
New to Communities?
Join the community