← Back to Lists
Question 145
Total Without Sum
Total Without Sum
The list grades is built from three integers read from input(), one per line with no prompts. Add the elements up with a for loop that accumulates into a variable total starting at 0, then print Total: <total> and on the next line Average: <value> where the average is the total divided by len() of the list, printed as a plain float. Input: three integers. Do not call sum().
Expected Output:
Total: 252 Average: 84.0
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Lists
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.