1# animals list
2animals = ['cat', 'dog', 'dog', 'guinea pig', 'dog']
3
4# 'dog' is removed
5animals.remove('dog')
6
7# Updated animals list
8print('Updated animals list: ', animals)
1myList = ['Item', 'Item', 'Delete Me!', 'Item']
2
3del myList[2] # myList now equals ['Item', 'Item', 'Item']
1names = ['Boris', 'Steve', 'Phil', 'Archie']
2names.pop(0) #removes Boris
3names.remove('Steve') #removes Steve
1>>> a=[1,2,3]
2>>> a.remove(2)
3>>> a
4[1, 3]
5>>> a=[1,2,3]
6>>> del a[1]
7>>> a
8[1, 3]
9>>> a= [1,2,3]
10>>> a.pop(1)
112
12>>> a
13[1, 3]
14>>>