hai

welcome

What is Python?

Home/python/What is Python?

What is Python?

Python is a programming language of general use, dynamic, high level and interpreted. It supports the object-oriented programming approach to develop applications. It is simple and easy to learn and provides many high-level data structures.

Python is a powerful and versatile scripting language, easy to learn, which makes it attractive for application development.
The syntax and dynamic writing of Python with its interpreted nature, make it an ideal language for the creation of scripts and the rapid development of applications.
Python supports several programming patterns, including object-oriented programming styles, imperatives, and procedures or procedures.
Python is not designed to work in special areas such as web programming. That is why it is known as multipurpose because it can be used with web, company, 3D CAD, etc.
We do not need to use data types to declare the variable because it is written dynamically, so we can write a = 10 to assign an integer value to an integer variable.
Python makes development and debugging fast because there is no compilation step included in Python development and the editing, testing and debugging cycle is very fast.

Python 2 vs Python 3

In most programming languages, each time a new version is released, it is compatible with the features and syntax of the existing version of the language, therefore, it is easier for the integrated projects in the language to change to the last version. However, in the case of python, the two versions of python 2 and python are very different from each other.

The two differences that can be pointed out here are:

  1. Python 2 uses printing as a declaration and is used as “something” to print a string in the console. On the other hand, Python 3 uses the print function as a function and is used as a print (“something”) to print something on the console.
  2. Python 2 uses the raw_input () function to accept user input. Returns the string that represents the value that the user has written. To convert it to an integer, we need to use the int () function in python. On the other hand, Python 3 uses the input () function that automatically interprets the type of input entered by the user. However, we can convert this value to any type using primitive functions (int (), str (), etc.).
  3. In Python 2, the implicit string type is ASCII, while in Python 3, the implicit string type is Unicode.
  4. Python 3 does not contain the xrange () function of python 2. The xrange () is the variant of the range () function that returns an xrange object that works similarly to the Java iterator. The range () returns a list, for example, the range of functions (0,3) contains 0, 1, 2.
  5. There is also a small change made in the handling of Exceptions in Python. 3. Define a keyword as which is necessary to be used.

Python training in chennai | Python training in bangalore | Python training in pune | Python online training | best Python training in chennai

By | 2018-12-04T12:52:19+05:30 December 4th, 2018|python|0 Comments

About the Author:

Leave A Comment