LearnPy Hub
← Modules & the Standard Library problems
Hard

Rounding Money Correctly

Read prices one per line until END. Add 15% VAT to each, rounding each to 2 decimals with Decimal and ROUND_HALF_UP. Print each result and then the total.

Input

Lines, then END.

Output

Lines.

Sample 1

Input
10
2.5
END
Output
11.50
2.88
14.38

Sample 2

Input
0.1
END
Output
0.12
0.12
solution.py
Output appears here
Rounding Money Correctly · Python practice problem · LearnPy Hub