How to install python in window and print "Hello World"
Tags: python, beginners, programming
Published: 2022-01-18 11:52:42

## How to install python in window and print "Hello World"
Now, we are going to install both python as well as visual studio code (vs code). First let's start with python installation, just follow following steps.

 

- **Go to this link** - [Download Python | Python.org](https://www.bing.com/search?q=python+install&cvid=3b9ae20746b74b138d476bccb4e82c6e&aqs=edge.0.0j69i57j0l6j69i61.6470j0j1&pglt=43&FORM=ANSPA1&PC=ACTS)
- From the above link, download the latest version of Python.
- After visiting this link, click on the "Download Python" button.
-  Your download will start as soon as you click on the dowload button.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/msgmpgt09rzlear5dpp9.png)
 After download is complete, open the downloaded file
1. It will ask that you want to make changes to your pc.
Then click “Yes”.

2. Then follow the following steps
a) Check on box to add Path and select customized as shown
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zl3tfeq8spqg7lon3snp.jpg)

b) See all boxes are checked and click on “Next

just click check on the on the following things:
1. Install for all users 
2. Associate files with python (requires the py launcher)
3. Create shortcuts for installed applications
4. Add Python to environment variables 
5. Precompile standard library


c) Check the boxes and browse the location where you want to save the python or leave the default path as it is .
Then click on install and wait for completion.

d) After completion you will be shown this window

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v34ubyzpoim7ikswtlx0.jpg)

**Note :** To check whether you have installed latest version or not go to the window an right click there, it will show Window PowerShell (if not near to window there is type here to search there just search Window PowerShell ) after that write python --version it will show which version you have insalled.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e738b3ehbhvrgwzxnph2.jpg)

## Now its time to insatall Visual Studio Code
Visual Studio Code is one of the best application with the help of this you can make websites . To download Visual Studio Code, follow the steps given below :

 - Go to this link  - [Download Visual Studio Code - Mac, Linux, Windows](https://www.bing.com/search?q=vs+code+install&qs=HS&pq=v&sk=HS1&sc=8-1&cvid=59FB4A837B8E4D86B28957C0114742C4&FORM=QBRE&sp=2)
 - After visiting the above link, select according to your device   
 - Click on "Download"
 - Your download will start.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zldzt4s59irfa4ch5lvu.jpeg) 

After that just click on next ---> next ---> next --->
follow the followings images :
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fx91dnrr7jwcvetdhn0l.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8n48eexp3p6t5p4bwwqs.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vonw1m3sqvlll2evb325.jpeg)

Just check the following boxes :

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ag11m8z3mj2bpvk4xg0e.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j32aaj1bhg0ausrr4tdk.jpeg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gpirrzra314x2915v1zx.jpg)


To open your Visual Studio  Code there is a shortcut go to the folder where your python is installed, Make another folder with any  name then open that folder after that right click an open it with visual Studio Code it will directly take to the vs code after there may it show I trust vs code or not if shows then check that box after that your folder open and there make a new file with any name file name should we filename.py or filename.pyt and there write print("Hello World") and run this file by clicking on run button if run button is not working just go to the terminal an click on new termial python filename.py e.g hel.py 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jorrcungc6isyc939lpd.jpeg)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2odbvd85yq2xaibkazvv.jpeg)

Here you have successfully installed both Python as well as Visual Studio Code 

-This is my Github account-
[16pravinkumar/University_template](https://github.com/16pravinkumar/University_template)