Step-by-Step tutorial to install Python on Windows
1. Open your favorite browser and search for 'python'.
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.
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.
4. Click on the 'Python 3.9.0' button, which is for windows.
wait until the download is finished.
5. Click on the downloaded 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'.
8. Click on 'Install Now' to start the installation.
Installation will start, wait until the installation is finished.
9. When installation is successful you will get a window showing the message that the Setup was successful. Then click on Close.
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 3.9.0 on windows 10 using command prompt?
1. Search for the command prompt and open it.
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.
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.
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 ...
أزال المؤلف هذا التعليق.
ردحذفإرسال تعليق
If you have any query, feel free to ask.