🐍

Guide to Installing Python on Windows 10

Aug 25, 2024

Installing Python on Windows 10

Introduction

  • Welcome to Amit Thinks.
  • Objective: Learn to install the current Python version on Windows 10 and run a sample program.

Installation Steps

  1. Open Web Browser

    • Use any browser (e.g., Chrome).
    • Search for "Python" and hit enter.
    • Click on the official website: python.org.
  2. Download Python

    • Navigate to the Downloads section.
    • Click on the current version (Python 3.12.0).
    • Wait for the 25 MB download to complete.
  3. Begin Installation

    • Right-click the downloaded file and select Open to start the setup.
    • Minimize the setup file during installation.
    • Choose the following options:
      • Use admin privileges
      • Add python.exe to PATH
      • Click on Customize installation.
  4. Select Components

    • Ensure the following components are selected:
      • PIP: Used for managing Python packages.
      • IDLE: An integrated development environment for Python.
    • Click Next.
  5. Install Python

    • Select the option to install Python for all users and set environment variables by default.
    • Confirm the installation location and click Install.
    • Wait for the installation to complete and click Close.

Verifying Installation

  1. Open Command Prompt

    • Type CMD in the Start menu and open it.
  2. Check Python Version

    • Type python --version and press Enter.
    • Confirm that the installation was successful by seeing the version number.
  3. Open Python Shell

    • Type py and press Enter to access the Python shell.
    • Use the print() method to print messages.

Using IDLE

  1. Open IDLE
    • Type IDLE in the Start menu and open it.
  2. Run Programs
    • Execute Python code easily here.
    • Save your program: Go to File > Save As and name it (e.g., Amit.py).

Additional Resources

  • For a complete Python tutorial, refer to the link in the video description.

Conclusion

  • Thank you for watching the video!