Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991. Python supports multiple programming paradigms, including “object oriented features, imperative, functional and procedural”, and has a large and comprehensive standard library. It is a great language to teach programming to novices.
Check below code, written in python.
History of Python
Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research Institute for Mathematics and Computer Science in the Netherlands.
- Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, and Unix shell and other scripting languages.
- Python is copyrighted. Like Perl, Python source code is now available under the GNU General Public License (GPL).
- Python is now maintained by a core development team at the institute, although Guido van Rossum still holds a vital role in directing its progress.
- Python 1.0 was released in November 1994. In 2000, Python 2.0 was released. Python 2.7.11 is the latest edition of Python 2.
- Meanwhile, Python 3.0 was released in 2008. Python 3 is not backward compatible with Python 2. The emphasis in Python 3 had been on the removal of duplicate programming constructs and modules so that “There should be one — and preferably only one — obvious way to do it.” Python 3.7 is the latest version of Python 3.
Python’s features include −
- Open Source and Free − Python is freely available to use and it’s source code is also available under GPL(General Public License).
- Interpreted Language − Python is a bytecode interpreted language. Read following to get a crystal clear understanding about the difference between compiler and interpreter.
Read the following, to understand the difference between a compiler and interpreter.
Compiled or Interpreted is implementation specific not language specific. In short words author of programming language chooses whether to implement his language using compiler or interpreter.https://en.wikipedia.org/wiki/Programming_language_implementation
Generates intermediate code(low level/machine readable language) out of source code(high level language ), which can be executed later on. Programming languages implemented using compiler have 2 steps for running a program.
Ex: C, C++, Java etc are implemented using compiler.
It also generates intermediate code, but execution takes place immediately, unlike compiler. Programming languages implemented using interpreter has a 1 step execution.
- Multi Paradigm Programming Language − Python supports “Object Oriented features(Inheritance, Polymorphism, Encapsulation), Imperative, Functional(lambda expressions) and Procedural programming”.
- Easy-to-Code − Python has keywords, simple structure, and a clearly defined syntax.
- Large standard library − Python has a large set of modules and libraries for developing Standalone applications, Web Applications. Various python modules such as numpy, pandas, scikit learn, tensorflow etc can be used in Machine Learning, Artificial Intelligence, Data Science, Data Analytics etc.
- Application Development − Python is used in Web App Development, Desktop application development( PyQt for UI )
- Databases − Python(Tkinter) like any other programming language can be used to provide GUI interfaces to many widely used databases.
- Dynamically typed − Prefixing a variable with datatype is not required.
- GUI Programming − Python supports creation of GUI applications.
- Scalable − Python provides a better structure and support for large programs than shell scripting.