PPS Practical 1
PPS Practical 1
Practical on Unit I
Section - I
Installation of Python
Step 1: Select Version to Install Python
Visit the official page for Python https://www.python.org/downloads/ on the Windows operating
system. Locate a reliable version of Python 3, preferably version 3.13.11, which was used in
testing this tutorial. Choose the correct link for your device from the options provided:
either Windows installer (64-bit) or Windows installer (32-bit) and proceed to download the
executable file.
Python Homepage
Python Installer
After Clicking the Install Now Button the setup will start installing Python on your Windows
system. You will see a window like this.
Python Setup
Python version
You can also check the version of Python by opening the IDLE application. Go to Start and enter
IDLE in the search bar and then click the IDLE app, for example, IDLE (Python 3.10.11 64-bit).
If you can see the Python IDLE window then you are successfully able to download and installed
Python on Windows.
Section II
Assignment no: 1
Problem statement: To calculate salary of an employee given his basic pay (take as input from
user). Calculate gross salary of employee. Let hra be 10 % of basic pay and ta be 5% of basic pay.
Let employee pay professional tax as 2% of total salary. Calculate net salary payable after
deductions.
Objective: To read salary details as input from user and display the gross salary.
Required software/hardware: Lab computer, windows, ubuntu,python 3 interpreter /anaconda
navigator.
Outcomes: Getting knowledge of data types, identifiers, literals used in python.
Theory:
1. Explain all data types with syntax and examples
2. Explain identifiers and list rule of identifiers with example
3. Explain literals with example
Algorithm:
Step1: Start
Step2: Variable initializations
Step3: Accept basic pay from user
Step4: If value of basic pay is negative then ask user to enter positive value for basic pay
step5: Compute salary as
Hra = (basic_pay/100)*10; ta = (basic_pay/100)*5;
Temp_salary = basic_pay + hra + ta; ptax = (temp_salary/100)*2
Salary = temp_salary - ptax;
Step6: Display salary
Step7: Stop
Flowchart:
Conclusion: By implementing this assignment we learn the concepts and use of data types,
identifiers, literals and built-in functions.
ATTACH PROGRAM PRINT WITH OUTPUT HERE.