Question: python are two dictionaries equal?
Answer: Python List cmp() Method. The compare method cmp() is used in Python to compare values and keys of two dictionaries. If method returns 0 if both dictionaries are equal, 1 if dic1 > dict2 and -1 if dict1 < dict2. We have two dictionary name "Boys" and "Girls."