1# Example 1:
2# animals list
3animals = ['cat', 'dog', 'rabbit', 'guinea pig']
4# 'rabbit' is removed
5animals.remove('rabbit')
6# Updated animals List
7print('Updated animals list: ', animals)
8
9
10# Example 2:
11# animals list
12animals = ['cat', 'dog', 'dog', 'guinea pig', 'dog']
13# 'dog' is removed
14animals.remove('dog')
15# Updated animals list
16print('Updated animals list: ', animals)
17
18# Example 3:
19# animals list
20animals = ['cat', 'dog', 'rabbit', 'guinea pig']
21# Deleting 'fish' element
22animals.remove('fish')
23# Updated animals List
24print('Updated animals list: ', animals)
1thislist = ["apple", "banana", "cherry"]
2thislist.remove("banana")
3print(thislist)