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 30+ keywords are available.
- When compared with other languages, we can write programs with very less number of lines. Hence more readability and simplicity.
- We can reduce development cost of the project.
Freeware and Open Source
- We can use python software without any license and it is freeware.
- Its source code is open, so that we can customize based on our requirement. Example – Jython is customized version of python to work with java applications.
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.
Platform Independent
- Once we write a python program, it can run on any platform without rewriting once again.
- Internally PVM is responsible to convert into machine understandable form.
Portability
- Python programs are portable means we can migrate from one platform to another platform very easily. Python programs will provide same results on any platform.
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.
- Java, C etc. are statically typed languages because we have to provide type at the beginning only.
- Dynamic typing nature will provide more flexibility to the programmer.
Both Procedure Oriented and Object Oriented
- Python language supports both procedure oriented (like C, pascal etc.) and object oriented (like C++, Java) features. Hence we can get benefits of both like security and reusability etc.
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.
Extensible
- We can use other language programs in python.
- The main advantages of this approach are:
- We can use already existing legacy non-python code.
- We can improve performance of the application.
Embedded
- We can use python programs in any other language programs means we can embed python programs anywhere.
Extensive Library
- Python has a rich inbuilt library.
- Being a programmer we can use this library directly and we are not responsible to implement the functionality…etc.
Limitation of Python
- Performance wise not up to the mark because it is interpreted language.
- Not using for mobile applications.
Flavors of Python
- CPython – It is the standard flavor of python. It can be used to work with C language applications.
- Jython or JPython – It is for java applications. It can run on JVM.
- IronPython – It is for C#.Net platform.
- PyPy – The main advantage of PyPy is performance will be improved because JIT compiler is available inside PVM.
- RubyPython – For ruby platforms.
- AnacondaPython – It is specially designed for handling large volume of data processing.
Python Versions
- Python 1.0 introduced in Jan 1994
- Python 2.0 introduced in October 2000
- Python 3.0 introduced in December 2008
Remark
- Python 3 would not provide backward compatibility to python 2 it means there is no guarantee that python2 programs will run in python3.
Ungraded Questions
Get ready for an exhilarating evaluation of your understanding! Brace yourself as we dive into the upcoming assessment. Your active participation is key, so make sure to attend and demonstrate your knowledge. Let’s embark on this exciting learning journey together!