Loading...
PythonUncategorized

Features of Python

1. Simple and easy to learn :

Python is a simple programming language. When we read Python program, we can feel like reading English statements.

Syntax’s are very simple and only 30+ words are available.

When we compared with other languages, we can write programs with very less number of lines. Hence more readability and simplicity.

We can reduce development and cost of the project.

2. Freeware and Open Source:

We can use Python software without any license and it is free software.

Its source code is open, so that we can customize based on our requirements

Example: Jython is customized version of Python to work with Java Applications.

3. High Level Programming Language :

Python is high level programming language and hence it is programmer friendly language. Being a programmer we are not required to concentrate low level activities like memory management and security etc..

4. Platform Independent :

Once we write a Python program, it can run on platform without rewriting once again. Internally PVM is responsible to convert into machine understand form.

5. Portability :

Python programs are portable. ie we can migrate from one platform to another platform very easily. Python programs will provide same results on any platform.

6. Dynamically Typed:

In Python we are not required to declare datatype for variables. Whenever we are assigning the value, based on value, type will be allocated automatically. Hence Python is considered as dynamically typed language.

But Java, C etc are Statically Typed Languages because we have to provide datatype at the beginning only.

This dynamically typed nature will provide more flexibility to the programmer.

7. Both Procedure Oriented and Object Oriented:

Python language support both Procedure Oriented(like C, pascal etc) and Object Oriented(like C++, Java) features. Hence, we can get benefits of both like security and re-usability etc.

8. Interpreted:

We are not required to compile Python programs explicit. Internally Python Interpreter will take care that compilation.

If compilation fails interpreter raised syntax errors. Once compilation success then PVM(Python Virtual Machine) is responsible to execute.

9. Extensible:

We can use other language programs in Python.

The main advantage of this approach are:

1. We can use already existing legacy non-Python code.

2. We can improve performance of the application.

10.Embedded:

We can use Python programs in any other programming language i.e., we can embedd Python programs anywhere.

11. Python has a rich inbuilt library:

We can use this library directly and we are not responsible to implement the functionality.

12. Robust:

Python is more powerful in determining as well as handling error conditions, through software handlers. It guides the programmer, by providing full details of errors, in case of program crashing due to errors. For example, the location where the error has occurred in the code, by specifying the file name, line number and function. It also allows the programmer to take an action for the elimination of the error.

The exception handlers in Python are capable of reducing debugging process, by simplifying the problem, redirecting the program flow, performing cleanup or maintenance measure, closing the application elegantly or just ignoring it. In case, if the errors could not be handled properly, Python generates a stack that displays the type and location of the error, in addition to the location of module that contains the erroneous code.

Leave a Reply

Your email address will not be published. Required fields are marked *