d = {'Ali': 123, 'Veli': 478, 'Selami': 75, 'Ayşe':642, 'Fatma': 39} k = dict() for key in d: k[d[key]] = key print(d) print(k)