how to find the same value in list python code example
Example 1: how to check if there are duplicates in a list python
>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True
Example 2: how to check if the to list are the same in python
>>> [0,1,2] == [0,1,2]
True
>>> [0,1,2] == [0,2,1]
False
>>> [0,1] == [0,1,2]
False