You can use the unique() function of Numpy to check the unique elements in a list.
>>> s=[1,0,1,2,0,1,1,0,2,2,3,0]>>> np.unique(s)array([0, 1, 2, 3])