Remove Specified Item
The remove()
method removes the specified item.
Example
Remove “banana”:
thislist = ["apple", "banana", "cherry"]
thislist.remove("banana")
print(thislist)
If there are more than one item with the specified value, the remove()
method removes the first occurrence: Continue reading Python – Remove List Items