Category Archives: Python

Remove items from a list with Python

In a previous article we saw how we could add elements to a list in Python, now we are going to see the complementary and we will learn how to remove elements from a list with Python. To do this, the first thing we will do is create a list of elements, in this case… Read More »

Remove duplicate items from a list with Python

 We have already validated the three ways in which items can be removed from a list, now let’s see how we can remove duplicate items from a list with Python. In this case we return from a list of elements that we initialize with numbers:list = [1,4,3,4,5,1,2,8,7,4,3,1,3]Remove duplicate items with remove If we have read… Read More »