Python‎ > ‎list‎ > ‎

list.remove()


Definition
Remove first occurrence of value.

Syntax
list.remove(items)

Parameters
object in the list
Object have to in list

Examples
The returns are following:
>>> x=[55,887,99,777]
>>>x.remove(99)
>>>print(x)
[55, 887, 777]
>>> x=["Python", "Research", "Centre"]
>>> x.remove("Research")
>>> x
['Python', 'Centre']
>>>

Comments