# Code
D1 = {‘a’: 10, ‘b’: 20, ‘c’: 10}
count = {}
val = D1.values()
for i in val:
if i not in count:
count[i] = 0
count[i] += 1
a = False # This is used to check if there is atleast one value which occurs more than once
for i in count.values():
if i>1:
a = True
print(i, ‘keys have same values’)
if not a: # There are no two keys with same value
print(‘No keys have same values’)