title: How to display max and min averages in a set of class averages
body: <p>I'm writing a program in python to allow the user to enter the number of students in class, and then 3 test grades for each student.  It also needs to show the student's test average, the class average, and the max and min average in the class.  Right now, I'm having trouble making it not print the class average after each student's grades and average is printed.  I also really can't make the max and mins work because it is changing with each student to that student's average.  </p>
  
  <pre><code>students=int(input('Please enter the number of students in the class: '))
  
  for number in range(students):
  
      class_average == 0 
  
      first_grade=int(input("Enter student's first grade: "))
      second_grade=int(input("Enter student's second grade: "))
      third_grade=int(input("Enter student's third grade: "))
  
  
      StudentAverage=(first_grade + second_grade + third_grade)/3
      print("The student's average is", round(StudentAverage,2))
  
  
  
      class_average= class_average + StudentAverage
      print("The class average is", round(class_average/students,2))
  
  
  
  maximum_num = 0
  
  if StudentAverage &gt; maximum_num:
      maximum= StudentAverage
      print("The maxiumum average is", round(maximum,2))
  
  
  minimum_num = 100
  
  if StudentAverage &lt; minimum_num:
      minimum= StudentAverage
      print("The minimum average is", round(minimum,2))
  </code></pre>