Skip to main content

Python Tutorial

How to Calculate Salary of Employee with Taxable Amount in Python

This is a simple program to calculate salary of employee with taxable amount in Python. The program requires the name of the employee, name of the company, salary of the employee. It will then calculate based on 20% tax rate. If the employee’s salary falls below 10,000, then the employee is not taxed. Else the employee is taxed with 20% deduction. emp_name = input("Enter the name of the Employee: