CJCoding With Joseph
15free / daySign inCreate account

Sharing The Bill

Print two lines of output from the declared bill and number of people: the first says Whole dollars each, a colon and a space, then the floor division // result; the second says Exact share, a colon and a space, then the true division result shown with two decimals using :0.2f. Do both divisions inside the f-string braces. Input: none; the values are fixed in the code.

Expected Output:

Whole dollars each: 23
Exact share: 23.75

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

Hints2 available
Topics:
PrintingOperators
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.