title: How to find the mode of a list when there are multiple modes - Python
body: <p>I am trying to find out the mode of a list that works, but when there are multiple modes, an error is returned. How would I fix this error in my code?</p>
  <p>I want to make it so that it calculates it like how this would be calculated normally <code>[3, 3, 4, 4] =&gt; (3+4)/2 = 3.5</code> if that is possible.</p>
  <pre class="lang-py prettyprint-override"><code>import statistics
  
  numbers = ['3', '3', '4', '4']
  mode = statistics.mode(numbers)
  print(f'Mode: {mode}')
  </code></pre>
  <p>this is the error I get: statistics.StatisticsError: no unique mode; found 2 equally common values</p>