Python tutorial- Python is an object-oriented, interpreted high-level programming language along with dynamic semantics. Its high-level built-in data structures and algorithms, combined with dynamic typing binding, make it very attractive and special for Rapid Application Development(RAD), and for use as a scripting or a glue language to attach already existing components together.
Python is a simple, easy-to-learn syntax that emphasizes readability and therefore drastically reduces the cost required for program maintenance. Python supports and provides modules and packages, which increases program modularity and code reuse. Its interpreter and the wide and extensive standard library are freely available in source or binary form for all major platforms and can even be freely distributed. And even debugging the programs is easy, a bug or bad input surely will never cause a segmentation fault.
When the interpreter discovers an error, it throws an exception. When the program doesn’t get the exception, the interpreter prints or gives a stack trace. A source-level debugger allows a check of local and global variables, setting breakpoints, evaluation of arbitrary expressions, stepping through the code lines one by one, and so on.
Some important characteristics of python are listed below:
1. It can be used as a scripting language or can be compiled to byte code for building large applications.
- It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
- It supports functional and structured programming methods as well as OOP.
- It supports automatic garbage collection.