Price With Tax

In shops and services, the final amount is often higher than the item price because of tax. Write a function total_bill that takes a price price and a tax rate tax_percent as a percentage. Return the final price including tax, rounded to 2 decimal places.

Примеры

Ввод
100, 10
Вывод
110
Ввод
50, 20
Вывод
60
Ввод
19.99, 0
Вывод
19.99

Нужно реализовать

def total_bill(price: float, tax_percent: float) -> float:

Теги

math
PostgreSQLv16

Тук ще се появи резултатът от изпълнението на кода

Visible tests
1
Input
100, 10
Expected110
2
Input
50, 20
Expected60
3
Input
19.99, 0
Expected19.99
4
Input
200, 7.5
Expected215
5
Input
10, 5
Expected10.5
6
Input
-100, 10
Expected-110
Focus radio
Paused · SomaFM · Fluid