Python Installation:

First thing, before learning Python, is to install the software. In this blog, we will be using the Visual Studio Code for running our Python program.

Step 1: Install Python

  1. Go to https://www.python.org/ and download the latest Python version

  2. Install Python on your computer. Make sure to check the box that says "Add Python to PATH". This will allow Python to run from command line

  3. After installation, you can now run Python from the command line.

print("Hello, This is my first program in command line")

Output: Hello, This is my first program in command line

Hurray!! now you are set to go :)

Step 2: Install Visual Studio Code:

  1. Go to the https://code.visualstudio.com/download and download the latest Visual Studio Code software based on the system you use.

  2. Install it on your computer

Step 3: Configure Python in Visual Studio Code:

  1. Open the successfully installed Visual Studio Code.

  2. Navigate to the Extension option which is present in the left side of your Explorer.

  3. Search for Python and click on it.

  4. You will find the install button. install it.

  5. Now Python is configured in your Visual Studio Code.

Step 4: Run the Python code to check:

  1. Enter the following program code and save the file in .py format

print("Hello, This is sample Code")

  1. Open the terminal and execute the Python code, you will see the below output.

Output: Hello, This is sample Code

Hurray! Python is successfully installed on your system now. :)

Let's begin our learning and practice session :)