Write a program in python to accept monthly salary from the user , and display income tax with the help of the following rules : Monthly Salary : >90000 , 60000-90000 , <60000 ; Income tax : 20% of monthly salary , 15% of monthly salary , 10% of monthly salary .
Answers
Answered by
8
def calc_income_tax(salary):
if salary > 90000:
return salary * .2
if 60000 <= salary <= 90000:
return salary * .15
return salary * .1
s = float(input("enter salary: "))
print(f"income tax: {calc_income_tax(s):.2f}")
Answered by
0
Answer:
when does human resource turn into liability than an asset.
Similar questions