Python: is general-purpose high-level ,dynamically typed and widely used and Top trending programming Language.It has code readability with use of significant identation and supports multiple programming paradigms, including structured, object-oriented and functional programming etc.
Multiple programming paradigms means it supports different styles of writing code. One can write Python code in procedural, object oriented, functional or imperative manner.
Functional programming: In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions.
Object-oriented:Object oriented programming is a programming paradigm based on the concept of "objects", which can contain data and methods to operate on data. The data in object oriented is represented in the form of fields or attributes and the method or code is in the form of procedures. A common feature of objects is that procedures are attached to them and can access and modify the object's data fields.
Procedural:A procedural language is a computer programming language that follows, in order, a set of commands.
It breaks problems into smaller subproblems, making them accessible and faster to solve. Program written are strait forward and interpreted.Procedural programming is a part of the programming paradigm that works on a linear or top-down approach.
History Of Python
Guido Van Rossum: invented the Python language. He was born on 31 January 1956 in Haarlem, outside of Amsterdam in the northwest Netherlands.
but the real implementation started in 1989 in December. That time when Guido Van Rossum was working on their research project at Centrum Wiskunde & Informatica (CWI) in the Netherlands.
Python is said to be a successor to the ABC programming language and was inspired by STEL(SET Language), which was based on the set theory in mathematics. Previously Guido Van Rossum worked on ABC programming language at CWI in the Netherlands.
Van Rossum published Python on 27 February 1991 to the public. It was a great need for a discussion forum, so in 1994, the primary discussion forum for Python was formed.
There is a fact behind choosing the name Python.The name Python does not relate to Reptiles(Python). Guido van Rossum was reading the script of a popular BBC comedy series "Monty Python's Flying Circus". It was late 1970s.
Van Rossum wanted to select a name which unique and mysterious. So he decided to select naming Python after the "Monty Python's Flying Circus" for their newly created programming language.
The comedy series was creative and well random. It talks about everything. Thus it is slow and unpredictable, which made it very interesting.
Python is widely used in almost every field including such as Data Science,Machine Learning, Artificial Intelligence, Web Development, Mobile Application, Desktop Application, Scientific Calculation, Health Care, Transportation,NASA etc.
Featurs of Python
As General purpose language Python Brought Many Features.
1.Easy:
Python is a very developer-friendly language which means that anyone and everyone can learn to code it in a couple of hours or days. As compared to other object-oriented programming languages like Java, C, C++, and C#, Python is one of the easiest to learn.Python code looks like simple English words. There is no use of semicolons or brackets, and the indentations define the code block. You can tell what the code is supposed to do simply by looking at it.
2. Free and Open-Source
Python is developed under an OSI-approved open source license. Hence, it is completely free to use, even for commercial purposes. It doesn't cost anything to download Python or to include it in your application. It can also be freely modified and re-distributed. Python can be downloaded from the official Python website.
3.High Level:
Python is the high Level Language.A high-level programming language has a significant abstraction from the details of computer operation. It is designed to be easily understood by humans and for this reason they must be translated by another software
4.Interpreted:
Python is the interpreted language and also known as scripting Language.In computer science, an interpreter is a computer program that directly executes instructions written in a programming or scripting language, ..
an interpreted programming language does not need to be compiled before its programs are executed.
5.Portable:
Python is Portable Means that can be run on different computers running different operating systems and architecture with no or little modifications.
6.Extensible:
Python is an Extensible language. Extensible Means you can add new behavior without changing existing code.We can write some Python code into C or C++ language and also we can compile that code in C/C++ language.
7.Expressive:
Python is an expressive language. Expressive imeans that a single line of Python code can do more than a single line of code in most other languages. The advantages of a expressive language are – the fewer lines of code you write, the faster you can complete the project.
8.GUI:
A graphical user interface: is an application that has buttons, windows, and lots of other widgets that the user can use to interact with your application.Python offers multiple options for developing GUI (Graphical User Interface). tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python.tkinter is easy and fastest way of creating GUI in Python
9.Dynamic and Strongly Typed:
Python is both a strongly typed and a dynamically typed language. Strong typing means that variables do have a type 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.
10.Robustness :
Ability of a program to continue if there is any abnormal condtion in the programs input,calculations and operations etc. In computer science, robustness is the ability of a computer system to cope with errors during execution
11.Dynamic Memory Allocation:
Python Supports dynamic Memory Allocation which is managed by heap data Structure.
Memory management in Python involves a heap containing all Python objects and data structures. The management of this p heap is ensured internally by the Python memory manager. The Python memory manager has different components which deal with various dynamic storage management aspects, like sharing, segmentation, preallocation or caching .
A heap is the pre-reserved computer memory that a program process can use to store data. Objects and variables use this memory Area.