I have two dictionaries, for example:
first = { 'test' : [1, 2, 3] }
second = { 'test' : [3, 2, 1] }
first == second # False
Is there a way to compare these two dictionaries and ignore the order of the values in the lists inside?
I tried using OrderedDict
but it didn't work:
from collections import OrderedDict
first = OrderedDict({ 'test' : [1, 2, 3] })
second = OrderedDict({ 'test' : [3, 2, 1] })
first == second # False