#I have to revise this code below to allow the teacher to perform these calculations for any number of students. The teacher will be asked if she wants to calculate the average of another student. If she does, the program will allow her to input his / her test grades then calculate the new students average. The program should continue accepting new students and grades until the teacher says she has entered the last student's grades.

#What I have so far is almost right, but I can't seem to get it to completely work it messes up at the very end.

```
count=0
totalPoints=0.0
moreGrades="yes"
while moreGrades != "no":
testPoints=input("Enter a test grade. ")
totalPoints= totalPoints + testPoints
moreGrades=raw_input("Are there any more grades to enter? ")
count= count + 1
average= totalPoints/count
print "The average is", average
print
moreStudents="yes"
moreStudents=raw_input("Would you like to calculate another students average? ")
while moreStudents != "no":
testPoints=input("Enter a test grade. ")
totalPoints= totalPoints + testPoints
moreGrades=raw_input("Are there any more grades to enter? ")
count= count + 1
average= totalPoints/count
print "The average is", average
raw_input()
```