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.
Ex:
>>>
>>> 2+2
4
>>>
>>> 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!
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.
Ex:
>>>
>>> 2+2
4
>>>
>>> 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!
0 comments:
Post a Comment