Install Python on Windows 10 using Visual Studio Code
Python
Python is a programming language that has multipurpose functions. In python, unlike other difficult programming languages, python has a language that is easier to read and understand. Python puts more emphasis on the readability of code which is easier to understand syntax.
Why choose the python language? because python language is simple, neat, and short. Python is also a very powerful language with many applications in the scientific field. The use of python also makes applications such as big data, data mining, deep learning, data science to machine learning.
This language first appeared in 1991, designed by a man named Guido van Rossum. Until now, Python is still being developed by the Python Software Foundation. Python language supports almost all operating systems, even for the Linux operating system, almost all distributions already include Python in it.
print(“Python is easy to read and understand”)
sample code
with the print code, you can print whatever you want inside brackets (), without having to close it with ;
Here is how to install python on windows 10
First, we download the application from the official python web
Python website can detect the operating system we are using. Because I am using Windows, it will display the title “Download the latest version for Windows”
After downloading, open the python file then open and install
After that check the add python and select install now.
Wait until the installation process is complete, when finished then click the close button.
When finished look at the Windows Menu, then look for Python You will find 4 files in this menu.
Trying to run python code with python IDLE
First, run the IDLE file in the Python folder in the windows menu.
But because you just installed python, it’s easier for you to see it in recently added, it is on its own when the window menu is opened.
But because you just installed python, it’s easier for you to see it in recently added, it is on its own when the window menu is opened.
After IDLE opens it will look like this
Click file, then new file
You will see an empty box
Type in simple code, for example:
After that click f5, and the command will appear to save, then select OK and select where the file will be saved
And a display like this appears
Here is how to install python on Visual Studio Code
First, Prepare the Visual Studio Code application
After the Visual Studio Code application has been opened, look for Extension (ctrl+shift+x) then type python
Select the top one, then install
Then create a new file with with a .py extension, for example:
If there is a notification asking to install pylint linter and Formatter autopep8, then install it
the pylint linter uses is to display the error program line directly
Next is how to run python in visual studio code
Type in simple code
then click f5, and click Python File
The output will appear in the terminal