Skip to content

Commit 8faa325

Browse files
committed
Add new file
1 parent 0be3a50 commit 8faa325

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sum.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
2+
3+
def grades_sum(grades):
4+
total = 0
5+
for i in grades:
6+
total += i
7+
print total
8+
9+
grades_sum(grades)

0 commit comments

Comments
 (0)