2 תשובות
n = int(input('how many people will take the test?'))
arr = []
for i in range(n):
arr.append(int(input('enter score for student {}'.format(i+1))))
avg = 0
for i in arr:
avg+=i
avg/=n
result = 0
for i in arr:
if i>avg:
result+=1
print(result)

זה אמור לעבוד
בקישור