I have a list of about 40 entries. And I frequently want to append an item to the start of the list (with id 0) and want to delete the last entry (
list
last
Use insert() to place an item at the beginning of the list:
insert()
myList.insert(0, "wuggah")
Use pop() to remove and return an item in the list. Pop with no arguments pops the last item in the list
pop()
myList.pop() #removes and returns "da..."