Modes of Python Program | Python Program Example Tutorials

PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we will see the different ways to develop a python program/application are
We can develop a python program in 2 different styles.
Interactive Mode and
Batch Mode.
Interactive mode is a command line shell. If we write a python program in the command line shell.
Typically the interactive mode is used to test the features of the python, or to run a smaller script that may not be reusable.
Open the command prompt, and go to the location which your python has been installed and hit the python command.
On the above example, I have executed some arithmetic operations on the python command shell.
Batch mode is mainly used to develop 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:
demo.py
i=100
j=200
print i+j
print i-j
print i*j

After writing the above code on any favourite editor, save it with the extension of either .py or .pyw.
Then run the above python program by passing the below command on your terminal.
 
chandrashekhar@goka:~/Documents$ python demo.py
300
-100
20000
Happy Learning 🙂

Python – How to remove duplicate elements from List
Python – Print different vowels present in a String
IDEs Support in PHP Tutorials
What is Python Programming Language
How to merge two lists in Python
How to read a text file in Python ?
How install Python on Windows 10
How to get Words Count in Python from a File
How to Create or Delete Directories in Python ?
How to Convert Python List Of Objects to CSV File
Python Operators Example
Features of Python Language
Python Number Systems Example
Python raw_input read input from keyboard
Python Conditional Statements

Python – How to remove duplicate elements from List
Python – Print different vowels present in a String
IDEs Support in PHP Tutorials
What is Python Programming Language
How to merge two lists in Python
How to read a text file in Python ?
How install Python on Windows 10
How to get Words Count in Python from a File
How to Create or Delete Directories in Python ?
How to Convert Python List Of Objects to CSV File
Python Operators Example
Features of Python Language
Python Number Systems Example
Python raw_input read input from keyboard
Python Conditional Statements
 


Δ
 Python – Introduction
 Python – Features
 Python – Install on Windows
 Python – Modes of Program
 Python – Number System
 Python – Identifiers
 Python – Operators
 Python – Ternary Operator
 Python – Command Line Arguments
 Python – Keywords
 Python – Data Types
 Python – Upgrade Python PIP
 Python – Virtual Environment
 Pyhton – Type Casting
 Python – String to Int
 Python – Conditional Statements
 Python – if statement
 Python – *args and **kwargs
 Python – Date Formatting
 Python – Read input from keyboard
 Python – raw_input
 Python – List In Depth
 Python – List Comprehension
 Python – Set in Depth
 Python – Dictionary in Depth
 Python – Tuple in Depth
 Python – Stack Datastructure
 Python – Classes and Objects
 Python – Constructors
 Python – Object Introspection
 Python – Inheritance
 Python – Decorators
 Python – Serialization with Pickle
 Python – Exceptions Handling
 Python – User defined Exceptions
 Python – Multiprocessing
 Python – Default function parameters
 Python – Lambdas Functions
 Python – NumPy Library
 Python – MySQL Connector
 Python – MySQL Create Database
 Python – MySQL Read Data
 Python – MySQL Insert Data
 Python – MySQL Update Records
 Python – MySQL Delete Records
 Python – String Case Conversion
 Howto – Find biggest of 2 numbers
 Howto – Remove duplicates from List
 Howto – Convert any Number to Binary
 Howto  – Merge two Lists
 Howto – Merge two dicts
 Howto – Get Characters Count in a File
 Howto – Get Words Count in a File
 Howto – Remove Spaces from String
 Howto –  Read Env variables
 Howto – Read a text File
 Howto – Read a JSON File
 Howto –  Read Config.ini files
 Howto – Iterate Dictionary
 Howto – Convert List Of Objects to CSV
 Howto – Merge two dict in Python
 Howto – create Zip File
 Howto – Get OS info
 Howto – Get size of Directory
 Howto – Check whether a file exists
 Howto –  Remove key from dictionary
 Howto – Sort Objects
 Howto – Create or Delete Directories
 Howto – Read CSV File
 Howto – Create Python Iterable class
 Howto – Access for loop index
 Howto – Clear all elements from List
 Howto – Remove empty lists from a List
 Howto – Remove special characters from String
 Howto – Sort dictionary by key
 Howto – Filter a list