0% found this document useful (0 votes)
19 views4 pages

PPS Practical 1

The document provides a step-by-step guide for installing Python on a Windows system, including downloading the installer and verifying the installation. It also outlines an assignment to calculate an employee's salary based on their basic pay, detailing the objectives, required software, and algorithm for the calculation. The assignment aims to enhance understanding of data types, identifiers, and literals in Python programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

PPS Practical 1

The document provides a step-by-step guide for installing Python on a Windows system, including downloading the installer and verifying the installation. It also outlines an assignment to calculate an employee's salary based on their basic pay, detailing the objectives, required software, and algorithm for the calculation. The assignment aims to enhance understanding of data types, identifiers, and literals in Python programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Group A

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

Step 2: Downloading the Python Installer


Once you have downloaded the installer, open the .exe file, such as python-3.13.11-amd64.exe,
by double-clicking it to launch the Python installer. Choose the option to Install the launcher for
all users by checking the corresponding checkbox, so that all users of the computer can access the
Python launcher application.Enable users to run Python from the command line by checking the
Add python.exe to PATH checkbox.

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

Step 3: Running the Executable Installer


After completing the setup. Python will be installed on your Windows system. You will see a
successful message.

Python Successfully installed

Step 4: Verify the Python Installation in Windows


Close the window after successful installation of Python. You can check if the installation of
Python was successful by using either the command line or the Integrated Development
Environment (IDLE), which you may have installed. To access the command line, click on the
Start menu and type “cmd” in the search bar. Then click on Command Prompt.
python --version

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.

You might also like