Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. In this article we will see how to install Python on windows, verify if it installed correctly and will run one hello-world program.
Following are important characteristics of Python Programming −
- It supports functional and structured programming methods as well as OOP.
- It can be used as a scripting language or can be compiled to byte-code for building large applications.
- It provides very high-level dynamic data types and supports dynamic type checking.
- It supports automatic garbage collection.
You can follow the below steps to install python on windows and start using.
Step 1 Download from official website
you can download python from the official website using the below link:
Select the version you want to download or if not sure then just download the latest version available in the very first place as you will see in the below image.
in case you are looking for specific version then in the same page (the one you open from the above link) and you will find the all previous versions available as below.
Step 2 After the download is completed, go to your download folder and run the .exe file to install the Python. Now click on Install Now.
Step 3 Once you clicked on “Install now”, you will the below screen as installation is in progress
Step 4 Once it is done, just click on close as below:
Step 4 verify if it has installed correctly. Open the command prompt and just type “python –version” and it should return you the version you have installed as below.
Step 5 in case you do not have any IDE installed yet (which we will be installing later) then also you can write programs in simple notepad and execute them using command prompt as below.
Open command prompt and type “notepad hellow-world.py” and hit enter then you will see a notepad file will open. Their you can write your python code. for now I will just write a print statement which will print the hello world as the output of the program.
After clicking yes, you just type the print statement in the file and save it using “ctrl+s”
Now go back to your command prompt and run the file using “python hello-world.py” it will return the output as hello world.
So this is all about “How to install Python on windows”. In next article I am going to explain how to install VSCODE IDE.
Machine Learning Articles: