1# this clear whole elements from list
2thislist = ["apple", "banana", "cherry"]
3thislist.clear()
1myList = ['Item', 'Item', 'Delete Me!', 'Item']
2
3del myList[2] # myList now equals ['Item', 'Item', 'Item']
1# removes item with given name in list
2list = [15, 79, 709, "Back to your IDE"]
3list.remove("Back to your IDE")
4
5# removes last item in list
6list.pop()
7
8# pop() also works with an index..
9list.pop(0)
10
11# ...and returns also the "popped" item
12item = list.pop()