d1 = {'ali': 123, 'veli': 432, 'selami': 892, 'ayşe': 45, 'fatma': 574} d2 = {value: key for key, value in d1.items()} print(d2)