prepend pyhton list

Solutions on MaxInterview for prepend pyhton list by the best coders in the world

showing results for - "prepend pyhton list"
Hubert
09 Mar 2018
1# option 1
2s.insert(0, x)
3
4# option 2
5new_list = [x] + your_list