Tuesday, February 28, 2012

Modes of Python

Python has two modes:

1. IDLE -- The Graphical User Interface

2. CLI -- Python Command Line Interface

IDLE is used mostly for programming. Both IDLE and CLI mode has a prompt which looks like ">>>"

">>>" This symbol is the python way of telling you that you are in the Interactive Mode. In Interactive Mode, whatever you type is executed immediately, when on pressing the Enter key.


>>> 2+2
>>> print "I am Learning Python"
I am Learning Python

So we see here that whatever we type in the ">>>" prompt, on pressing the Enter key, returns the value, and we dont need to save the program or code we typed in for executing the codes.

I hope This has been Informative for you, and Dont forget to check the Next Post..

Thank You!


Post a Comment