title: Which data structure to store inputted numbers?
body: <p>Which data structure is best for calculating average of inputted numbers ?
  I used an array, but it feels clumsy.<br>
  Is there a more standard way to do this?</p>
  
  <pre><code>import os
  
  def getGrades():
      g = input("How many tests?")
      numGrades = int(g)
  
      grades = []*numGrades
  
      for x in range(numGrades):
          t = int(input("Enter Grade #" + str(x+1) + ": "))
          grades.append(t)
      avgGrades(grades)
  
  def avgGrades(a):
      total = 0
      count = 0
      for t in a:
          total = total + t
          count = count + 1
      avg = total / count
      print (f"average is: {avg}")
  
  
  getGrades()
  </code></pre>