grades = [9, 7, 7, 10, 3, 9, 6, 6, 2]

print(grades.count(7)) #a

grades[-1]=4
print(grades)   #b

print(max(grades)) #c

grades.sort()
print(grades) #d

print(sum(grades)/len(grades)) #e len is aantal, sum is optelling
