It is a simple basic program to calculate tax using python. In this program pyfiglet module has been installed for heading otherwise it is not compulsory to install this module.

1.  Input name of the employee.

2.  Enter the salary of the employee.

3.  If salary is greater than 5000 then tax is equal to 0.10*salary and netsalary is equal to salary - tax.

4.  print salary.

5.  else netsalary is equal to salary.

6.  print no taxable amount.

7.  print salary.

These are the following steps to calculate tax using python. In this program we have if-esle statement.

For code click the link given below:

https://senpaicode12.blogspot.com/p/how-to-calculate-tax-using-python.html