How to Install Python on Windows

Step-by-Step tutorial to install Python on Windows

1.     Open your favorite browser and search for 'python'.

Python for windows



2.     Click on the first link, in the search result. That's the official page of Python(www.python.org), from where we have to download the Python file.

Python website



3.     Place your mouse cursor on 'Download' button on the navigation table on the top, and you will get a drop down menu as shown in the image below.


Python official website



4.     Click on the 'Python 3.9.0' button, which is for windows.


Download Python for windows


wait until the download is finished.


Downloading python for windows in chrome


5.     Click on the downloaded file.


Python executable file


6.     You will get a 'Open File - Security Warning' window (which will just ask you that you want to install or cancel the installation), click on 'Run'.


Run Python on windows



7.     Check mark the 'Add Python 3.9 to PATH', which will add Python to your 'Environment variables', by doing so you can run Python on command prompt.


Installing Python on windows



8.     Click on 'Install Now' to start the installation.


Python installation for windows



Installation will start, wait until the installation is finished.


Install Python on windows



9.     When installation is successful you will get a window showing the message that the Setup was successful. Then click on Close.


Python  Successfully installed



Now you have successfully installed Python on your windows machine, you are good to go to write your Python code.


How to open Python on windows 10?

Search for 'Python' on windows search menu.


Click on the Python App that shows first in the result.


How to open python on windows

How to open Python 3.9.0 on windows 10 using command prompt?

1.     Search for the command prompt and open it.


Python on command prompt


2.     In command prompt just type in 'py' or 'python' to open or run the Python interpreter.


Run Python on command prompt


How to run Python on command prompt


How to open Python IDLE on windows 10?

Type 'IDLE' in windows search menu, and click on the Python IDLE which shows on the search result.


How to open Python IDLE

Write your first Python program  "hello world"

To write 'Hello world' on the console, just type 'print("Hello world!")'.


Explanation:- 'print()' is a command (function), through which we can print anything on the console, write the sentence that you want to print in the double or single quotation marks and put them in to the brackets which are after the 'print' statement.


In the above example we have written the 'Hello world' sentence in double quotation marks and placed it inside the brackets after the print statement.


Python IDLE

Congo! you have installed Python 3.9.0 and Written your first program.






Conclusion

Here we have done the installation of Python. 

Learn Python and keep going ... 





1 Comments

If you have any query, feel free to ask.

Post a Comment

If you have any query, feel free to ask.

Post a Comment