>>> [0,1,2] == [0,1,2] True >>> [0,1,2] == [0,2,1] False >>> [0,1] == [0,1,2] False 

Read more of this post