In this program, we have used the built-in print() function to print the string Hello, world! on our screen.
Prerequisites -
To successfully complete this tutorial, you need to first setup your Python development environment. Specifically, this tutorial requires:
VS Code
VS Code Python extension
Python 3
If you have not already done so, install VS Code. refer my previous video for installation of VS code
Next, install the Python extension for VS Code from the Visual Studio Marketplace. For additional details on installing extensions, see Extension Marketplace. The Python extension is named Python and it's published by Microsoft.
From the File Explorer toolbar, select the New File.By using the .py file extension, you tell VS Code to interpret this file as a Python program, so that it evaluates the contents with the Python extension and the selected interpreter. When you start typing print, notice how IntelliSense presents auto-completion options.
Note: The File Explorer toolbar also allows you to create folders within your workspace to better organize your code. You can use the New folder button to quickly create a folder.
On this page of the site you can watch the video online chapter 2 - Write first program of python and Basic tools in VS code with a duration of hours minute second in good quality, which was uploaded by the user Internet of Things by DTPro 20 May 2021, share the link with friends and acquaintances, this video has already been watched 155 times on youtube and it was liked by 10 viewers. Enjoy your viewing!