Python Function Reference

remove
Remove the first item from the list whose value is equal to x.
Python 3.13
list.remove(x)
Examples
Python 3.13
>>> a = [1, 2, 3]
>>> a.remove(2)
[1, 3]