dic1 = {'a': 'a', 'b': 'c', 'c': 'd'}
dic2 = {'b': 'a', 'a': 'c', 'c': 'd'}
dic1.keys() == dic2.keys()
dic1.keys() - dic2.keys()
dic1.keys() | dic2.keys()
Python: How to know if two dictionary have the same keys