Header Ads

Header ADS

Python IDLE

Python IDLE .

Their are lots of Code editor available for python and many of them are free and with a nice interface and awesome plugins but for a beginner i must recommend Python IDLE for coding python . 




IDLE ?

IDLE (Integrated Development and Learning Environment) is a default editor that comes with Python. This software helps a beginner to learn Python easily. IDLE software package is optional for many Linux distributions. The tool can be used on Windows, macOS, and Unix.
it is easy to use with a simple GUI Interface .

let me tell you one more thing : Python IDLE  is build using Tkinter which is a python library for creating Simple GUI. 

Note : all the python Code in our New post is in IDLE format ..

Price: free

Features:

  • Search multiple files
  • It has an interactive interpreter with colorizing of input, output, and error messages.
  • Supports smart indent, undo, call tips, and auto-completion.
  • Enable you to search and replace within any window.
  • Download Link: https://docs.python.org/3/library/idle.html

How to use interactive Shell 

The interactive shell makes it easy to enter  and test the python statements without writing the full program .
When you start  the shell, it displays some copyright information followed by its prompt ( >>> ) .
At this prompt, you can type any python code that you want to run. Then when you press Enter Key, python runs the code and displays the result if their is any or displays another prompt .




How to use the interactive shell :
  • First open the interactive shell just by searching IDLE in your system .
  • Enter Python code after >>> prompt. then Enter
  • if you enter a valid code that produces a result, the shell displays the result.
  • if you enter a invalid code, the shell displays an error message.

How to work with source code :
we cannot code our whole code in interactive shell because interactive shell is useful for testing purpose not for writing a whole program .
the solution of this problem is a IDlE editor , it is a software package comes with python by default in which you can write your python whole program and run it .
How to open it : 

select New File option from file menu then a word processor like window opens and  you can write your python code in it .

How to use :
  • code your program
  • save it 
  • Press F5 or goto run menu .



Recommended Posts:
Still updating ...



This Article is Contributed by Yogesh singh .
Share your suggestions and feedback in comment sections.

Thank you for visiting here ..

No comments

Powered by Blogger.