Python list.remove() Method
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
Enjoying these tutorials?