comparing the two types of dictionaries.
Answers
Answered by
0
Answer:
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. ... When code is executed it prints out -1, It indicates that our dictionary 1 is less than dictionary
Similar questions