Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, November 30, 2012

Codecademy: The sum of scores


#sample solution


grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]

def grade_sum(grades):
sum = 0
for grade in grades:
sum = sum + grade
return sum

print grade_sum(grades)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts