Python Programming 17 - Removing all Occurrences of Item in List

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Your videos are very clear, crisp, to the point and easy to understand. Thank you and Best wishes!!!

varshaprasad
Автор

Caleb has probably taught me more than my skl taught me in a year with a few vids. If only every teacher were as good as him

aravinthsrisivasritharan
Автор

i used while "pizza slice" in backpack:
backpack.remove("pizza slice")
print(backpack)

chriskhater
Автор

She was just jealous of your pocket sandwich.

SamCropper
Автор

When I come for programming and get dating advice nice 🤣

PremiumGerman
Автор

I hate when JAva or JS programmers give bad advice on python programming.
For all people, that actually want to use this, use list comprehensions, they are more efficient than loops.
Example:
to_remove = 'pizza slice'
filtered_backpack = [item for item in backpack if item != to_remove]

JakubYTb