list.append() is the obvious choice for adding to the end of a list. Here\'s a reasonable explanation for the missing list.prepend(). Assuming my
list.append()
list.prepend()
If you can go the functional way, the following is pretty clear
new_list = [x] + your_list
Of course you haven't inserted x into your_list, rather you have created a new list with x preprended to it.
x
your_list