compare dictionaries in Python
compare dictionaries in Python
comparison of dictionaries is simaler to other comparison in Python there is no difference it can be done with the help of “==” operator. Let’s see an example of it.
Example :-
- x={'a':10,'b':11,'c':12,'d':13}
- b={'a':10,'b':11,'c':12,'d':13}
- c={'a':10,'b':11,'c':12,'d':13}
- print(x==b==c)
Comments
Post a Comment