How To Install Python On Windows
Introduction
In this chapter, you will learn how to install Python on Windows. After installing Python, we will run a simple program in idle Python editor and command prompt.
How to install Python?
Step 1
Click this link, it will take you to the Python official download website.
Website link.
![How To Install Python 3.8 On Windows](https://www.csharp.com/UploadFile/Tutorial/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How To Install Python on Windows.png)
Step 2
Click the download button and you will see Python 3.8.2.
![How To Install Python 3.8 On Windows](https://www.csharp.com/UploadFile/Tutorial/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How To Install Python on Windows02.png)
Step 3
Click Python 3.8.2 and Python will start to download.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows03.png)
Step 4
Next, right-click the mouse button you will see open button click to open.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows04.png)
Step 5
Enable to add Python 3.8 to the path and click install now.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows05.png)
Step 6
Wait a few minutes and the display setup was successful. Next, you will click the close button.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows06.png)
Step 7
Next, you will search for IDLE Python, then click enter.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows07.png)
Step 8
Next, click the file button. You will see a new file again. Click the new file button.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows08.png)
Python sample program
Now I am writing a program that displays "Hello friend".
Print is used to print the output statemen
- print("Hello friend") #double quotes
- print('Hello friend') #single quotes
Output
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows09.png)
How to write Python code in command prompt?
Step 1
Go to search option and search “cmd”.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows10.png)
Step 2
Next, you click the command prompt.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows11.png)
Step 3
Next, you type Python in the command prompt and press enter key.
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows12.png)
Python sample program
Now I am writing a program that displays "Hello friend".
Print is used to print the output statement.
- print("Hello friend") #double quotes
- print('Hello friend') #single quotes
Output
![How To Install Python 3.8 On Windows](https://www.csharp.com/admin/how-to-install-python-3-8-in-windows02072020040443/Images/How%20To%20Install%20Python%20on%20Windows13.png)
Conclusion
In the next chapter, you will learn to install and setup anaconda on windows.
Author
Surya S
423
3.6k
656.8k