Software engineering and personal development

Tag: array

How to Remove Duplicate Elements in a List in Python

MacBook Pro, white ceramic mug,and black smartphone on table
Photo by Andrew Neel on Unsplash

Lists are part of typically every project that you work on these days. You have lists of people, a list of products, a list of activities, and the list of lists goes on.

There can be times when you want to only have unique elements in that list, for example, if someone has liked multiple posts and you want to get all the people who have liked one of your posts. You do not want to include that same person multiple times in that list.

Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑