1.1.2 Features of Python
1.1.2 Features of Python
• Software quality
As stated, python code is clean, easy to read and debug. These factors help in code re usability and
maintainability. In addition, python has strong re-use mechanisms such as object oriented programming
(OOP).
• Developer productivity
Python enhances developer productivity as compared to other programming languages (C/C++, Java etc.).
It can be understood from the fact, that the python code is one-third to one-fifth the size of equivalent
code written in another programming languages (C/C++, Java, etc.). Hence, less to type, debug, maintain,
moreover, python programs run immediately without compile and link overhead.
• Program portability
Python programs run across the platforms. For example, if we have to run the script code, written on Linux
platform, on windows platform we have to simply copy and paste. Moreover, it offers various methods
and approaches for coding portable graphical user interfaces (GUIs), database access programs, web
based systems, operating system interfaces, and many more.
2
Features
• Support libraries
It comes with vast collection of pre-built functionality called as standard library.
This library supports an array of application-level programming tasks, from text
pattern matching to network scripting. In addition, Pythons third party domain
offers tools for website construction, numeric programming, serial port access,
game development, and much more. The NumPy extension, for example, has
been described as a free and more powerful equivalent to the Matlab numeric
programming.
• Component Integration
There are various integration mechanisms present in python which lets Python
scripts to communicate with other parts of an application. For instance, from
python code we can invoke C and C++ libraries, we can also integrate with Java
and .NET components etc.
3
Features
• Interpreted language
Python is Interpreted programming language which means program is being
executed by reading it instruction by instruction. Unlike compilers, Interpreters
do not produce a binary executable file. Each time we run a program, we invoke
the interpreter, it then reads and executes the program one Instruction at a time.
Although there is overhead in the interpretation of program but it facilitates
future changes in the program.
• Dynamic and strong typed nature
Python is both a strongly typed and a dynamically typed language. Strong typing
means that variables do have a type (integer, float, and string etc.) and that the
type matters when performing operations on a variable. Dynamic typing means
that the type of the variable is determined only during runtime
• .
4