The remove() method removes the first occurrence of a specified value. Given fruits = ["apple", "banana", "apple", "cherry"], calling fruits.remove("apple") results in ["banana", "apple", "cherry"].
Only the first "apple" is removed. If the value doesn't exist, remove() raises a ValueError. To avoid this, check with in first: if "grape" in fruits: fruits.remove("grape").
The method modifies the list in place and returns None. Note that remove() searches by value, not index. Use it when you know what to remove but not where it is. For removing by position, use pop() or del instead.