python two dictionaries equal

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

Here is what the above code is Doing:
1. We create a dictionary a with three key-value pairs.
2. We create a dictionary b with three key-value pairs.
3. We create a dictionary c by zipping together the keys [‘one’, ‘two’, ‘three’] and the values [1, 2, 3].
4. We create a dictionary d by passing the key-value pairs [(‘two’, 2), (‘one’, 1), (‘three’, 3)] to the dict constructor.
5. We create a dictionary e by passing the key-value pairs {‘three’: 3, ‘one’: 1, ‘two’: 2} to the dict constructor.
6. We compare a, b, c, d, and e. Since they all contain the same key-value pairs, they’re all equal.