5 lines
142 B
Python
5 lines
142 B
Python
def calculate_total(price, tax_rate):
|
|
return price * (1 + tax_rate / 100)
|
|
|
|
if __name__ == "__main__":
|
|
print(calculate_total(1000, 20)) |