l.remove('Bob') print(l) # ['Charlie', 'Bob', 'Dave']
# l.remove('xxx') # ValueError: list.remove(x): x not in list
list =['Apple','Banana','Mike','Kiwi'] list.remove(list[2]) print(list) # ['Apple', 'Banana', 'Kiwi']