← Back to Files
Question 409
Sum Of Saved Numbers
Sum Of Saved Numbers
Four whole numbers from input are written to numbers.txt, one per line. Inside the read-back loop convert each line with int() (the newline does no harm to the conversion) and add it to total, then print Total: <total> on one line after the loop. Input: four lines, each a whole number, no prompt.
Expected Output:
Total: 18= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Files
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.