πŸ’» Install Python on Windows

Step 1: Download Python

  1. Open your web browser.
  2. Go to the official Python website:
    Python
  3. Click Downloads.
  4. Download the latest Python version for Windows.

Step 2: Run the Installer

  1. Open the downloaded installer file.
  2. Check the box “Add Python to PATH” βœ”οΈ
  3. Click Install Now.

This will install Python and its required components on your system.


Step 3: Verify Installation

After installation, open Command Prompt and type:

python --version

If Python is installed correctly, it will display something like:

Python 3.x.x

🍏 Install Python on macOS

Step 1: Download Python

  1. Visit the official website:
    Python
  2. Download the macOS installer.

Step 2: Install Python

  1. Open the downloaded .pkg file.
  2. Follow the installation instructions.

Step 3: Verify Installation

Open Terminal and run:

python3 --version

🐧 Install Python on Linux

Many Linux distributions already include Python.

Check if Python is installed

Open the terminal and type:

python3 --version

Install Python (if not installed)

For Ubuntu / Debian:

sudo apt update
sudo apt install python3

For Fedora:

sudo dnf install python3

πŸ§ͺ Running Your First Python Program

After installation, you can test Python by running a simple program.

Open a terminal or command prompt and type:

python

Then enter:

print("Hello, Python!")

Output:

Hello, Python!

πŸ›  Recommended Python Code Editors

You can write Python programs using different editors such as:

  • Visual Studio Code πŸ’»
  • PyCharm ⚑
  • Sublime Text ✨
  • Notepad++