I have a dictionary as follows:
mydict ={1:'apple',2:'banana',3:'banana',4:'apple',5:'mango'}
I want to compute a list containing all the keys for values โโthat appear more than once:
mylist = [1,2,3,4]
The value 'mango' appears only once, so key 5 not in mylist .
How can i achieve this?
source share