About-Python : It is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is a general purpose, dynamic, high-level, and interpreted programming language. It supports Object Oriented programming approach to develop applications, It is simple and easy to learn and provides lots of high-level data structures.It is easy to learn yet powerful and versatile scripting language, which makes it attractive for Application Development.
It is used for:
- web development (server-side),
- software development,
- system scripting.
About-Python & It’s Application
1)Easy to Learn and Use
2) Expressive Language
3) Interpreted Language
4) Cross-platform Language
5) Free and Open Source
6) Object-Oriented Language
8) Large Standard Library
9) GUI Programming Support
12. Dynamic Memory Allocation
Difference Between Python 2 &. Python 3
In most of the programming languages, whenever a new version releases, it supports the features and syntax of the existing version of the language, therefore, it is easier for the projects to switch in the newer version. However, in the case of Python, the two versions Python 2 and Python 3 are very much different from each other.
- Python 2 uses print as a statement and used as print “something” to print some string on the console. On the other hand, Python 3 uses print as a function and used as print(“something”) to print something on the console.
- Python 2 uses the function raw_input() to accept the user’s input. To convert it into the integer, we need to use the int() function in Python. On the other hand, Python 3 uses input() function which automatically interpreted the type of input entered by the user. However, we can cast this value to any type by using primitive functions (int(), str(), etc.).
- In Python 2, the implicit string type is ASCII, whereas, in Python 3, the implicit string type is Unicode.
- Python 3 doesn’t contain the xrange() function of Python 2. The xrange() is the variant of range() function which returns a xrange object that works similar to Java iterator. The range() returns a list for example the function range(0,3) contains 0, 1, 2.
- There is also a small change made in Exception handling in Python 3. It defines a keyword as which is necessary to be used. We will discuss it in Exception handling section of Python programming tutorial.