list equivalence python code example
Example 1: compare lists element wise python
[ x&y for (x,y) in zip(list_a, list_b)]
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