14.9k views
3 votes
If a list called grades already exists, which of the following will print out the total of all of the items in the list?

A.
print(sum(grades))

B.
print(total(grades))

C.
print(grades(sum))

D.
print(grades(total))

User Tinno TL
by
7.7k points

1 Answer

3 votes

Answer:

print(sum(grades)) or option A

Step-by-step explanation:

A will print out the total of all the items in the list called grades.

User Valenok
by
7.3k points

No related questions found