count = int(input("How many grades? "))
above = 0
grades=[]
for i in range(count):
g = float(input("enter a grade: "))
grades.append(g)
# OR: grades += [g]
# OR: grades = grades + [g] (less efficient)
#grades[i] = g --> won't work!!
s = sum(grades)
avg = s/count
##for gr in grades:
## if gr > avg:
## above += 1
above_lst = [gr for gr in grades if gr > avg]
above = len(above_lst)
print(above, "grades are above the average", avg)