title: calculating student/class average with python
body: <p>python 3.3.3</p>
  
  <p>I am trying to write a program for class and I am lost. Here is what I need to do.</p>
  
  <p>I need to calculate an average per student based on grades entered.
  I need to calculate a class average.
  if a student enters a grade of -1 input of grades stop.
  need to print a message with each students grade.
  the students grade should show a numeric grade and a letter grade.
  the message will be based off of the students letter grade.</p>
  
  <p><em>how do i collect and store students name and test grades.
  so that i can output it all at once to where it will show the students name.
  thier numeric average, a letter grade based off that average, 
  and a statement based off the letter grade they recieved</em>?</p>
  
  <p><strong>heres the code i have so far:</strong> </p>
  
  <pre><code>def main():
      another_student = 'y'
      while another_student == 'y' or another_student == 'Y':
          student_average()
          print()
          another_student = input('do you have another student to enter (y/n) ? ')
      while another_student == 'n' or another_student == 'N':
          student_average_list()
          class_average()
          break
  
  def student_average():
      total = 0.0
      print()
      student_name = input('what is the students name? ')
      print()
      print()
      print(student_name)
      print('-------------------')
      number_of_tests = int(input('please enter the number of tests : '))
      for test_num in range(number_of_tests):
          print('test number', test_num + 1, end='')
          score = float(input(': '))
          total += score
      student_average = total / number_of_tests
      print ()
      print(student_name,"'s average is : ",student_average, sep='')
  
  def student_average_list():
      print ('kahdjskh')
  
  def class_average():
      print ('alsjd')
  
  main()
  </code></pre>