Web Analytics

Python list.remove() Method

List Method Remove Item

The remove() method removes the first occurrence of the element with the specified value.

Syntax

list.remove(elmnt)

Parameters

Parameter Description
elmnt Required. The element you want to remove

Return Value

None. The list is modified in place.

Example

Using the remove() method:

Output
Click Run to execute your code

Related Functions