title: How do i find the percentage of the most common element in a list?
body: <p>I have been recently using <code>Counter().most_common</code> but the problem is that I need to turn the bit where it shows how much it came up into a percentage, for example:</p>
  
  <pre><code>[(2, 5), (10, 5)]
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>[(2, 50%), (10, 50%)]
  </code></pre>
  
  <p>Is there any way of doing this using <code>Counter().most_common</code>, or any other method?</p>
  
  <p>Here is part of my code:</p>
  
  <pre><code>    while count &lt; int(DR):
          count = count + int(1)
          DV.append(random.randint(1, int(DI)))
      if count == int(DR):
          print ('\n(The Number that was rolled , the amount of times it came up):')
          global x
          print (Counter(DV).most_common(int((DI))))
  </code></pre>