Name

.remove()

Examples
inventory = ["lamp", "skeleton key", "mystic orb"]
print(inventory) # Prints ["lamp", "skeleton key", "mystic orb"]
inventory.remove("skeleton key")
print(inventory) # Prints ["lamp", "mystic orb"]
Description Removes the given item from the list. Raises a ValueError exception if the item isn't found.
Syntax
a.remove(i)
Parameters
aList from which to remove an item.
iThe item to remove.
Related .insert()
.append()
.reverse()
.index()
Updated on Tue Jul 11 06:52:23 2017.
Creative Commons License