CJCoding With Joseph
15free / daySign inCreate account

Three Marks With A Total

Ask for three marks with the prompts Mark 1? , Mark 2? and Mark 3? (each ending in a space), convert each with int(), then print two lines: Total: <sum> and Average: <value> with the average to two decimals using :0.2f. Input: three lines, one integer each. The prompts are part of the output and input() stays on the same line, so all three prompts and the total share the first output line, as shown in Expected Output.

Expected Output:

Mark 1? Mark 2? Mark 3? Total: 255
Average: 85.00

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
User Input
📥 Auto-Input:
88\n92\n75\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.