python check for duplicate

>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True

Here is what the above code is Doing:
1. We create a list called your_list.
2. We use the len() function to get the length of your_list.
3. We use the set() function to convert your_list to a set.
4. We use the len() function to get the length of the set.
5. We use the != operator to check if the length of your_list is not equal to the length of the set.
6. We print the result.