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()
The s.insert(0, x) form is the most common.
s.insert(0, x)
Whenever you see it though, it may be time to consider using a collections.deque instead of a list.