Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
remove
remove
Remove the first item from the list whose value is equal to x.
Python 3.13
1
list
.
remove
(
x
)
Examples
Python 3.13
1
2
a
=
[
1
,
2
,
3
]
a
.
remove
(
2
)
[1, 3]