Q:

prepend pyhton list

# option 1
s.insert(0, x)

# option 2
new_list = [x] + your_list
2

Tags

New to Communities?

Join the community