0% found this document useful (0 votes)
71 views3 pages

Experiment 1

Uploaded by

khushikatariya25
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)
71 views3 pages

Experiment 1

Uploaded by

khushikatariya25
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/ 3

EXPERIMENT-1

Aim/Title: - Install and Verify Python

Problem Statement: Download and install Python on your computer.

Verify the successful installation by running basic Python commands.

Objective: - To Learn how to download and install Python from the official website.

To Understand the installation process and customization options.

Practice running simple Python code to confirm a working Python environment.

Pre-requisite: Basic computer literacy (downloading files, running programs) and Internet
access

Hardware Requirements: Personal computer (Windows, macOS, or Linux)

Software Requirements: Web browser

Theory:

Python

Python is a versatile and popular programming language used for various applications like
web development, data science, scripting, and more. Installing Python provides you with the
necessary environment to write and execute Python code.

Part 1: Downloading Python

1. Visit the official Python downloads website: https://www.python.org/downloads/


2. Choose the appropriate Python version based on your operating system (Windows,
macOS, or Linux).
3. Download the installer file (.exe for Windows, .pkg for macOS, or .gz for Linux).

Part 2: Installing Python

Windows:

1. Double-click the downloaded installer file.


2. Follow the on-screen instructions during the installation process. It's recommended to
keep the default installation options unless you have specific requirements.
3. Make sure to check the option "Add Python 3.x to PATH" during installation. This
allows you to run Python from the command line without specifying the full path to
the Python executable.
macOS:

1. Open the downloaded .pkg file.


2. Follow the on-screen instructions for installation. The default installation location
usually works fine.
3. Python should be automatically added to your system PATH on macOS.

Linux:

The installation process for Linux might vary depending on your distribution. Refer to the
official Python documentation or your distribution's package manager for specific
instructions. Generally, you can use your distribution's package manager to install Python.
For example, on Ubuntu/Debian-based systems, you can use the following command in your
terminal:

Bash
sudo apt install python3

Part 3: Verifying Installation

1. Open a command prompt window (Windows) or terminal window (macOS/Linux).


2. Type the following command and press Enter

python --version

This should display the installed Python version number, indicating a successful installation.

3. (Optional) You can try running a simple Python program to further verify. Create a
new text file (e.g., test.py) and paste the following code:

Python
print("Hello, World!")

Save the file and then run the following command in your terminal/command prompt,
replacing "test.py" with your actual file name:

python test.py

If everything is set up correctly, you should see the output "Hello, World!" printed on your
screen.

Instructions: NA

Program: Print Hello World


Output:

Conclusion:
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________

You might also like