0

I am having problem with my python homework. My homework is asking to create a Python program to calculate a student test averages regardless of how many tests will be averaged. Also, it is asking to allow the teacher to continue averaging grades for any number of students. This is what I have so far. My problem the second part is not calculating right, what I'm I missing:

```
`I
#First Step. (Similar example pg. 104)
count = 0
totalGrade = 0.0
moreGrades = "y"
while moreGrades != "n":
grade = int(input("Enter a test grade: "))
totalGrade = totalGrade + grade
moreGrades = input("Are there amy more test grades to enter, 'y' or 'n' ")
count = count + 1
average = totalGrade/count
print("The average is", round(average, 1))
#Second Step
plusStudents = "y"
plusStudents = input("Are there any more students, 'y' or 'n'? ")
while plusStudents != "n":
grade = int(input("Enter a test grade: "))
totalGrade = totalGrade + grade
moreGrades = input("Are there amy more test grades to enter, 'y' or 'n' ")
count = count + 1
average = totalGrade/count
print("The average is", round(average, 1))
```