Introduction
In the last two articles "Learning Python - Introduction To Python" and "Learning Python - Installation Of Python On Windows 10", we discussed the introduction to Python, why to learn Python, and how to install Python on Windows 10.
In this article, we will write our first Python program. We will write a very simple Python program using the Visual Studio Code. In order to start Python programming, the first step is to choose the code editor.
Choosing Python Editors
There are several very good code editors available like,
-
PyCharm
-
Spyder
-
Visual Studio Code
-
PyDev
-
Idle
-
Wing
-
Vim
-
Sublime Text 3
-
Thonny
We can choose any editor of our choice, each IDE has its own PROS and CONS. We will not go into comparisons here. There are very nice comparison articles available; a couple of articles are referenced in the "References" section.
Since I am SharePoint/Office 365 developer, I'll go with my all-time favorite IDE, i.e., Visual Studio Code.
Python with Visual Studio Code
If you also go with Visual Studio Code, then please download and install it from here.
Once Visual Studio Code is installed successfully, to start with the first program, we need to install "Python Extension for Visual Studio Code". Python extension can be installed from multiple locations.
-
After starting Visual Studio Code from "Welcome" -

Fig1: Python - Support for Python in Visual Studio Code
Here, as shown in the above Fig1, from the "Tools and languages" section, we can install support for various languages. Here, in my case, I already have Python extension installed so it is showing the "Python support is already installed" message.
-
From the editor itself, we will discuss this in the below section "Writing the first program".






Koshila SenadhiraPosted Dec 1, 2022, 11:18 AM
Interesting Article!