python code for calculating tax
Answers
Answered by
1
Explanation:
Input the gross income and number of dependents.
Compute the taxable income using the formula.
Taxable income = gross income - 10000 - (2000 * number of dependents)
Compute the income tax using the formula.
Tax = taxable income * 0.20.
Print the tax.
Similar questions