my_dict = {'KEY1': "Hello", 'Key2': "World"} new_dict = dict((k.upper(), v.upper()) for k, v in my_dict .items()) print(new_dict)