Installation and Set-Up

Python Installation & Setup

Step 1: Download Python

To install Python, visit the official Python website:

Installing Python on Windows

1. Download the latest version of Python from the website.

2. Run the installer and make sure to check the box that says "Add Python to PATH".

3. Click "Install Now".

Installing Python on macOS

1. Download the latest version of Python from the website.

2. Open the `.pkg` file and follow the installation instructions.

Installing Python on Linux

1. Open your terminal.

2. Use the following command to install Python:

sudo apt install python3

Step 2: Setting Up an IDE

To write Python programs, it's recommended to use an Integrated Development Environment (IDE). Below are some popular IDEs for Python:

Step 3: Verifying the Installation

After installation, verify that Python is installed correctly by opening your terminal/command prompt and typing:

python --version

You should see something like:

Python 3.x.x

Step 4: Running Your First Python Program

Open your IDE or terminal, and type the following code to print "Hello, World!" to the console:

print("Hello, World!")

Next Steps

Once you've successfully installed Python and set up your environment, you're ready to start writing Python programs! You can now move on to our Basic Python Syntax tutorial to learn the fundamentals.