How to Run Python Using IDLE IDE

In this article, we will learn how to run python using default Python IDE which is called python shell. It is automatically install when we install Python. It is the continuation third article of "Zero To Hero In Python" series. and go my previous article How to Install Python? Before reading this article gothrough my previous article then proceed this article. 




How to run python using it’s default IDE python Shell.
Go to windows search=> IDE double-click on this.


Figure 1.1 
Click on it Python Shell will open like.


Figure 1.2

Now click on File Menu and click New File dialog will open like. 



Figure 1.3 

Now I want to print the simple message here, so write a print command for display the message.
Go inside the file type:
print ("Welcome Python")


Figure 1.4 
Now save this file anywhere you want with any name with the .py extension because the extension of python is .py. After saving this.
To show the output
Click on run and select Run Module or press F5 to run this file.
Output:


Figure 1.5

Python supports many IDEs they are given below.
1. VS Code
2. IDLE
3. Eclipse
4. PyCharm
5. Sublime
6. Spyder
7. Wing IDE
8. PyScripter
9. PyDev
10. Jupiter Notebook
etc.
IDLE In the next article, we will learn how to configure VS Code with python.

No comments

Powered by Blogger.