← Back to User Input
Question 159
Average Of Two Marks
Average Of Two Marks
Ask for two marks with the prompts First mark? and Second mark? , convert each with int(), then print their average as a float in the form Average: <value>, so 7 and 8 give 7.5 and 10 and 2 give 6.0. Input: two lines, one integer each. Both prompts are part of the output and input() stays on the same line, so the prompts and the result share one output line.
Expected Output:
First mark? Second mark? Average: 7.5= newline. The output ends with a newline — print one after the last line.
Hints2 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.