Experiment 1
Experiment 1
Objective: - To Learn how to download and install Python from the official website.
Pre-requisite: Basic computer literacy (downloading files, running programs) and Internet
access
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.
Windows:
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
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
Conclusion:
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________