Suppose we have a list of integers. I would like to detect and print on the screen the most frequently repeated item . I know how to do it when the most common element is only one. However, if we have such a list which contains these elements:
10, 5, 2, 1, 2, 4, 6, 6, 6, 6, 10, 10, 10
i want to print a six and a ten so I mean I want to print all the most frequently repeated elements no matter how many there are..