0
Calculating the average using python
A class of ten students took a quiz. The grades (integers in the range 0-100) for this quiz are available to you. Determine the class average on the quiz.
5 ответов
+ 2
So whats your question?can you be specific and ask one instead of just posting your homework?
0
I just need someone to put me through not necessarily the solution
0
OK i did this
#A class of ten students took a quiz. The grades (integers in the range 0-100) for this quiz are available to you. Determine the class average on the quiz.
students=10
grades=range(0,100)
total=0
grade=(60,40,40,78,89,76,77,59,90,66)
average=sum(grade)/len(grade)
print("class range =",average)
0
I was trying to interpret the question at first I guess I should have commented it.. I forgot to remove the total, I used it in my previous solution
0
OK thanks everyone but I think my solution is not well comprehensive, too cheap I guess.. Is there another way for me to solve it