python 2 dictionaries check all matching keys have matching values code example Example: python check if two dictionaries have same keys d_1.keys() == d_2.keys()