You are on page 1of 2

Display the grade for the 4 grading periods.

Compute and display the average grade.


This is sample output.
87
91
88
89
The average grade is 88.75
Grades = [87, 91, 88, 89]
sum = 0
for x in grades:
print(x)
sum = sum + x
ave = sum / 4
print (“The average grade is”, ave, “.”)

You might also like