Removes the first occurrence of a value from the list.
Syntax
list.remove(item)Example
Enter values below to update the example in real time.
fruits→remove→print→fruits = ["apple", "banana", "apple"]
fruits.remove("apple")
print(fruits) # ['banana', 'apple']