Files
Learn-Python-Programming-Th…/ch03/taxes.py
T
adii1823 8b802c5c62 ch03
2021-10-28 17:34:45 +05:30

12 lines
267 B
Python

income = 15000
if income < 10000:
tax_coefficient = 0.0 #1
elif income < 30000:
tax_coefficient = 0.2 #2
elif income < 100000:
tax_coefficient = 0.35 #3
else:
tax_coefficient = 0.45 #4
print(f'You will pay: ${income * tax_coefficient} in taxes')