python – Python3 Determine if two dictionaries are equal
python – Python3 Determine if two dictionaries are equal
==
works
a = dict(one=1, two=2, three=3)
b = {one: 1, two: 2, three: 3}
c = dict(zip([one, two, three], [1, 2, 3]))
d = dict([(two, 2), (one, 1), (three, 3)])
e = dict({three: 3, one: 1, two: 2})
a == b == c == d == e
True
I hope the above example helps you.
The good old ==
statement works.