Step 1: Visit Python’s Official Website

  1. Open your browser and search for “Python official website” (or go to python.org).
  2. Navigate to the official website of Python.

Step 2: Locate the Download Section

  1. On the Python website, find the section labeled Downloads.
    It’s typically on the homepage or in the menu at the top.
  2. Look for a download link or file that corresponds to your operating system:
    • Windows
    • MacOS
    • Linux
  3. Choose the latest stable version of Python (e.g., Python 3.x). Avoid beta or experimental versions if you’re a beginner.

Step 3: Install Python

  1. Run the installer:
    • Locate the file you downloaded (usually in your Downloads folder).
    • Open or double-click the file to start the installation.
  2. Important Step:
    During installation, look for an option to Add Python to PATH (or a similar setting). Ensure this option is checked. This makes it easier to use Python from the command line.
  3. Follow on-screen instructions:
    Click the appropriate buttons to install Python. Choose the default options unless you have a specific reason to customize.

Step 4: Verify Installation

  1. Open a terminal, command prompt, or shell:
    • Windows: Search for “Command Prompt” in the Start menu.
    • Mac/Linux: Open the Terminal app.
  2. Type the following command to check if Python is installed: python --version OR python3 --version
  3. If Python is installed, you’ll see a version number (e.g., Python 3.11.5).

Step 5: Test Python

  1. In the terminal, type: python OR python3
  2. Once Python opens, test it by typing: print("Hello, Python!") Press Enter to run the command. If you see the text printed, Python is working correctly.