Python : Programming Language


IDLE: Python editor

If you install python yourself, then default installation configuration will install IDLE editor. Integrated DeveLopment Environment or Integrated Development and Learning Environment is an GUI based editor for Python. You would be able write python scripts and execute it using IDLE. IDLE executes the Python scripts or source code on Python interpreter.

Working with IDLE

On Windows 7 or newer, click the Start icon in the lower-left corner of your screen, enter IDLE in the search box, and select IDLE (Python GUI). On Windows XP, click the Start button and then select Programs ▸ Python 3.4▸IDLE (Python GUI).
On Mac OS X, open the Finder window, click Applications, click Python 3.4, and then click the IDLE icon. On Ubuntu, select Applications▸Accessories▸Terminal and then enter idle3. (You may also be able to click Applications at the top of the screen, select Programming, and then click IDLE 3.) Below are screenshots on MacOSX and Windows platform.

IDLE on mac
IDLE on mac

The Interactive Shell

No matter which operating system you’re running, the IDLE window that first appears should be mostly blank except for text that looks something like this: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "copyright", "credits" or "license()" for more information.
>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit http://www.python.org/download/mac/tcltk/ for current information.
>>>

This window is called the interactive shell. A shell is a program that lets you type instructions into the computer, much like the Terminal or Command Prompt on OS X and Windows, respectively. Python’s interactive shell lets you enter instructions for the Python interpreter software to run. The computer reads the instructions you enter and runs them immediately. For example, enter the following into the interactive shell next to the >>> prompt:

>>> print('Hello world!')
After you type that line and press ENTER, the interactive shell should display this in response:

>>> print('Hello world!')
Hello world!

References:

  1. https://en.wikipedia.org/wiki/IDLE_(Python)