The Most Pythonic Way to Remove Multiple Items From a List

Python’s built-in list data structure has many powerful methods any advanced Python programmer must be familiar with. However, some operations on lists can’t be performed simply by calling the right method.

You can add a single item to a list using the method append(item) on the list. If you want to add a list of items to another list, there is the method expand(items) which does the job for you.

The same holds if you want to delete an item from a list, you simply call the method remove(item)and you get the desired outcome.

But, did you ever wonder how to delete

Continue reading the original article