← Back to User Input
Question 178
Add Three Numbers
Add Three Numbers
Ask for three whole numbers with the prompts First? , Second? and Third? (each ending in a space), convert each with int() and print their sum in the form Sum: <value>. Input: three lines, one integer each. All three prompts are part of the output and input() stays on the same line, so the prompts and the sum share one output line, as shown in Expected Output.
Expected Output:
First? Second? Third? Sum: 15= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
User Input
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.