0% found this document useful (0 votes)
2 views1 page

Experiment - 1

This document provides a step-by-step guide for downloading and installing Python on various operating systems. It includes instructions for verifying the installation, using the interactive Python shell, and writing and executing a simple Python program. The document emphasizes basic operations and file management for beginners in Python programming.

Uploaded by

Ivan Ez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Experiment - 1

This document provides a step-by-step guide for downloading and installing Python on various operating systems. It includes instructions for verifying the installation, using the interactive Python shell, and writing and executing a simple Python program. The document emphasizes basic operations and file management for beginners in Python programming.

Uploaded by

Ivan Ez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Experiment:-1

1. Download Python:
 Visit the official Python website (https://www.python.org/) and go to the "Downloads"
section. Choose the version that suits your operating system (Windows, macOS, or
Linux) and download the installer.
2. Run the Installer:
 For Windows: Double-click the downloaded executable file and follow the installation
wizard.
 For macOS: Open the downloaded package and follow the installation instructions.
 For Linux: Use your package manager or follow the instructions on the Python website
for your specific distribution.
3. Check Python Installation:
 Open a command prompt (Windows) or terminal (macOS/Linux).
 Type python --version or python -V and press Enter to verify that Python is installed.

Learning Interactively:
1. Interactive Python Shell (REPL):
 Open a command prompt or terminal.
 Type python and press Enter to enter the Python interactive shell.
2. Execute Simple Commands:
 Try basic arithmetic operations like addition, subtraction, multiplication, and division.
 Declare variables and assign values to them.
 Explore basic data types (integers, floats, strings).

Writing a Simple Program:


1. Using a Text Editor:
 Open your favorite text editor (e.g., Notepad on Windows, TextEdit on macOS, or
any code editor like VSCode, Atom, or Sublime Text).
2. Write a Simple Program:
 print("Hello, Python!")
3. Save the File:
 Save the file with a .py extension, for example, hello.py.
4. Run the Program:
 Open a command prompt or terminal.
 Navigate to the directory where you saved your hello.py file.
 Type python hello.py and press Enter.
5.
Observe Output:
 You should see the output: Hello, Python!
………………………………………………...

You might also like