Friday, November 15, 2019

Python Modes


  • Python Modes
Python has basic two modes:
1. Interactive Mode
2.Scripting Mode:


1. Interactive Mode
Interactive mode is a command line shell which gives immediate feedback for each statement, which running previously feedback statement in active memory.
With the Python interactive interpreter it is easy to check Python commands. The Python interpreter can be invoked by typing the command “Python” without any parameter followed by the “return” key at the shell prompt.
Chavron Symbol >>>
 


2.Scripting Mode:
It is popularly known as Development mode. You can store code store code in a file and use the interpreter to execute the contents of the file, which is called Script.
Open any text editor and save file with extension of “ .py ” .

No comments:

Post a Comment