prepend to a list python code example Example: prepend pyhton list # option 1 s.insert(0, x) # option 2 new_list = [x] + your_list