Home >>Python List Methods >Python List remove() Method
Python list remove() method is used to remove the first occurrence of the element with the specified value in the given input list.
Syntax:list.remove(element)
Parameter | Description |
---|---|
element | This is a required parameter. It defines the element you want to remove. |
a = ['Abhi', 'Mike', 'Jerry']
a.remove("Mike")
print(a)
fruits = ['Apple', 'Banana', 'Orange']
fruits.remove("Banana")
print(fruits)