CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
Lists
📥 Auto-Input:
74\n88\n90\n
This input is automatically fed to your program's stdin
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.