Answers for "python two dictionaries equal"

1

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
Posted by: Guest on February-24-2021

Code answers related to "python two dictionaries equal"

Python Answers by Framework

Browse Popular Code Answers by Language