Sunday 14 February 2016

Python: Compare Equality of Two Lists

Cited from Best Way to Compare Contents of 2 Lists

a=[1, 2, 3]
b=[2, 3, 1]
set(a)==set(b)

No comments:

Post a Comment