Oct-18-2021, 05:25 PM
(This post was last modified: Oct-18-2021, 05:26 PM by deanhystad.)
From the docs:
https://docs.python.org/3/tutorial/datastructures.html
So if a list contains multiple x's, how do you remove them all? You already have the answer for 1, and you've shown that you know how to do something multiple times.
https://docs.python.org/3/tutorial/datastructures.html
Quote:list.remove(x)
Remove the first item from the list whose value is equal to x. It raises a ValueError if there is no such item.
So if a list contains multiple x's, how do you remove them all? You already have the answer for 1, and you've shown that you know how to do something multiple times.