Modes of Python Program

By | 2018-03-26T17:24:27+05:30 May 30th, 2017|Python|0 Comments

In this tutorials, we will see what are the different ways to develop a python program/application

Modes of Python Program :

We can develop python program in 2 different modes.

  • Interactive Mode and
  • Batch Mode.

Interactive Mode :

Interactive mode is a command line shell. If we write a python program in command line shell, the statements executed immediately and gives the output.

typically the interactive mode is used to test the features of the python, or to run a smaller scripts that may not be reusable.

Example for Interactive Mode :

Open the command prompt, and go to the location which your python has been installed and pass the command python.

Python Program

On the above example I have executed some arithmetic operations on python command shell.

Batch Mode :

Batch mode is mainly used to develop the business applications. In batch mode we can write a group of python statements in any one of the following editors or IDEs

Editors :

  • Notepad
  • Notepad++
  • editPlus
  • nano
  • gedit
  • IDLE
  • Etc..

IDEs :

  • pycharm
  • Eric
  • Eclipse
  • Netbeans   Etc..

We can write our python programs any one of the above Editors/IDEs.

Example for Batch Mode:

print i+j
print i-j
print i*j

After writing the above code on your any favourite editor save it with extension of either .py or .pyw.

Then run the above python program by passing the below command on your terminal.


chandrashekhar@goka:~/Documents$ python

Happy Learning 🙂

About the Author:

Hi Folks, you have reach this so far, that shows you like what you are learning. Then why don't you support us to improve for bettor tutorials by leaving your valuable comments and why not you keep in touch with us for latest updates on your favorite blog @ facebook , twitter , Or Google+ ,

Leave A Comment