1.introduction To Python
1.introduction To Python
Python History
✓ Python laid its foundation in the late 1980s.
✓ The implementation of Python was started in the December 1989 by Guido Van
Rossum.
✓ In February 1991, van Rossum published the code.
Python Introduction:
"Python is a programming language that lets our work more quickly and integrates our
systems more effectively."
Python is a general purpose, dynamic, high level and interpreted programming language. It
supports Object Oriented programming approach to develop applications.
Python is easy to learn yet powerful and versatile scripting language which makes it attractive
for Application Development.
Python's syntax and dynamic typing with its interpreted nature, makes it an ideal language
for scripting and rapid application development.
Python supports multiple programming pattern, including object oriented, imperative and
functional or procedural programming styles.
Python makes the development and debugging fast because there is no compilation step
included in python development and edit-test-debug cycle is very fast.
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.
✓ The syntaxes are very simple and only 35 (up to 3.7v) keywords are available.
✓ When compared with other languages, we can write programs with very a smaller
number of lines. Hence more readability and simplicity.
✓ We can reduce development and cost of the project.
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 type 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 type at the
beginning only.
✓ This dynamic typing nature will provide more flexibility to the programmer.
8. Interpreted:
✓ We are not required to compile Python programs explicitly. 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 advantages of this approach are:
o We can use already existing legacy non-Python code
o We can improve performance of the application
10. Embedded:
✓ We can use Python programs in any other language programs. i.e. we can embed
Python programs anywhere.
Limitations of Python:
✓ Performance wise not up to the mark because it is interpreted language.
✓ Not using for mobile Applications
4) Pypy: Pypy is actually bit different than other implementations its primary focus is to
overcome drawbacks (so called) of python. It is a Python interpreter and just-in-time
compiler. It is written in Python itself.
6) Anaconda Python: Anaconda is a free and open source distribution of the Python and R
programming languages for data science and machine learning related applications that aims
to simplify package management and deployment.
7) Stackless Python: Stackless Python is a reimplementation of traditional python and its key
point is lightweight threading. We can say its branch of CPython supporting micro threads.
Python Version
Python programming language is being updated regularly with new features and supports.
There are lots of updating in python versions, started from 1994 to current release.
Python Versions:
Python 1.0 January 1994
Python 2.0 October 2000 (support up to 2020)
Python 3.0 December 2008
Note: Any new version should provide support for old version programs in Software
programming languages. But not in allowed Python.