I have 3 lists :
list_1 = [1,2]
list_2 = [2,1]
list_3 = [1,2,3]
Note: numbers inside [] are the ids from Django Model
I want to test whether the contents (but not necessarily the order) of two lists are exactly the same. With reference to the 3 examples above:
Comparing list_1 and list_2
should return True,
but if I do validation between list_2 and list_3, or between list_1 and list_3,
then the result should be False.
How do I achieve this?
Thanks :D