title: How to find several most frequent elements in a list
body: <p>My program below does find the most frequent element in a list:</p>
  
  <pre><code>numbers = [7, 1, 7, 9, 2, 9, 7, 3, 0]
  counter = []
  
  for num in range(10):
      n = numbers.count(num)
      counter.append(n)
  
  largest = max(counter)
  print(counter.index(largest))
  </code></pre>
  
  <p>Output is 7 which is correct.</p>
  
  <p>However, if I add another 9 to the list:</p>
  
  <pre><code>numbers = [7, 1, 7, 9, 2, 9, 7, 3, 0, 9]
  </code></pre>
  
  <p>which means there are two most frequent elements in a list (in this case, both 7 and 9 are found three times there, as shown above), it only prints one of them - 7 in this case.</p>
  
  <p>Is there any way how to change my code, so that the output will be correct?</p>