title: Compute the average of all numbers in a list that are 50 or greater?
body: <p>I want to return a function which gives the average of all the marks which are <code>50</code> or more. When I run my code, it always returns an empty list.</p>
  <p>Here is what I have tried:</p>
  <pre><code>def get_pass_average(marks):
      average = []
      for count in marks:
          if count &gt;= 50:
             average = sum(count) / len(count)          
      return round(average,2)
  
  def test_get_pass_average():
      list1 = [50, 83, 26, 65, 92, 29, 77, 64]
      print('%.2f' % (get_pass_average(list1)))
  </code></pre>
  <p>Please help me to figure out the problems in my code, and the output should be <code>71.83</code>.</p>