How to Install and Set Up Python on Your System

How to Install and Set Up Python on Your System

Python Software Installation:

Python software is free to download.

Python software can be downloaded from www.python.org.

Step 1 - Go to this link and download Python.

step 2 - And then go to your download folder → double click → select the ADD PYTHON.EXE to PATH → install now.

Step 3 - After downloading the Python software, verify if the Python software is installed.

Open the command prompt —> python --version

Windows → search IDLE

Python software provide the following things :

IDLE: IDLE stands for Integrated Development Learning Environment. It is also called an IDE (Integrated Development Environment). It is a code editor provided by Python software.

When you install Python, it automatically downloads Python libraries.

The Python shell is a single-line command line Python interface, also called a REPL (Read-Evaluate-Print Loop).

Python tools:

  1. Python debugger

  2. Python package installer (PIP)

Third-party code editor :

Jupyter, PyCharm, VSCode, IDLE, Spyder, Google Colab (cloud)

Python distribution :

Python distribution means a ready-made package, so if you install it, all the tools are downloaded automatically.

Types of Python distribution:

  1. Official Python distribution: It is a simple Python, best for coding.

  2. Anaconda: It is used by data science and artificial intelligence learners.

  3. Miniconda: It is a smaller version of Anaconda, meaning all the basic tools are included.

  4. PyPy: It is for faster execution compared to normal Python.

  5. MicroPython: It is used for embedded systems, e.g., Arduino, Raspberry Pi, etc.

Python working modes :

  1. Interactive mode :

    In interactive mode, Python developers work with the Python shell. It is used just for testing purposes, not for developing programs.

  2. Scripting mode :

    In scripting mode, Python developers work with Python. It is used for development purposes.

    Note :

    1. A Python program is a file with the extension .py

    2. Every Python program is called a module.

    3. A program written in a high-level language is called a source program.

Steps for writing program :

Open IDLE —> Click on file —> select new file

Write the code —> file —> save —> select the folder —> write the name of that file

run —> run module

note : in file editor show run not in the file .

Download the VS code :

https://code.visualstudio.com/download