I have a dictionary such as:
dictionary
{2:\'r\', 4:\'y\', 5:\'u\', 7:\'y\', 13:\'r\', 17:\'y\'}
and I want a list: for every duplicated