Given two dicts, with a maximum of two key-value pairs, perform a simple comparison and return a boolean. Return true if they have the same keys and values. Otherwise false.
Sample Code:
def compDict(d1,d2):
# Enter your logic here...
Examples:
Input: {'lang':'Python'},{'lang':'Python'}
Output: True
Explanation: Both dicts are equivalent to each other, in terms of key and value.
Input: {'a':'one','b':'two'},{'b':'two','a':'one'}
Output: True
Explanation: Despite being different in order, both of the dicts are the same.