← Back to User Input
Question 161
Order Total
Order Total
Read the price of one item as a decimal number and the quantity as a whole number, then print the cost of the order with exactly two decimals in the form Total: <value>, using :0.2f inside the f-string. Input: two lines, the price then the quantity, no prompts.
Expected Output:
Total: 10.00= 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.