Explore Python Programs # Python Program For Employee Salary Calculation Want to know how to create python program for employee salary calculation, then you are at the right place today in this tutorial. I will show you how to create a python program for employee salary calculation, so follow this tutorial till the end.

So we will create a python program that asks the user for daily wage and number of work days then it will calculate the basic salary and deduct pf amount and print the total net salary so now let’s see how to do this in program.

## Employee salary calculation in python

``````
daily_wage = int(input("Enter daily wage: "))
no_of_work_days = int(input("Enter number of work days: "))

basic_salary = daily_wage * no_of_work_days

# PF is taken as 15/100 = 15% you can take according to yours
pf = salary * 0.15

total_salary = basic_salary - pf

print(f"Employee salary is {total_salary}")
```
```

Above is the python program for employee salary calculation. Now to run this program you need to have python installed on your computer, If you don’t have then follow this guide: Install and setup python on your computer.

The Complete Python Programming Boo...
The Complete Python Programming Bootcamp

To run this python program, follow the below steps:

• Create a new folder for this python project.
• Open it in a code editor of your choice.
• Create a python file with an ending .py extension.
• Copy the above code and paste it in your file.
• Open a terminal or CMD at folder location
• And type this command python filename.py (Name of your file).

After running this program you will asked to enter the daily wage and number of work days and then it will print the total salary, Below is an example output.

``````
Enter daily wage: 500
Enter number of work days: 30
Employee salary is 12750.0
```
```

Don’t want to create all the files and folders then you can run this program now using this online python compiler it is fast and easy.

## Summary

This was the python program to calculate employee salary. I hope you found this tutorial helpful and useful. Do share this tutorial with your friends who might be interested in this program.

Here are some more python drawing tutorials for you:

I hope you found what you were looking for from this tutorial, and if you want more python programs and tutorials like this, do join our Telegram channel for future updates.

Thanks for reading, have a nice day 🙂