How to use a set to just get the duplicates from a list in python code example
Example: how to check if there are duplicates in a list python
>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True
>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True