Posts

Showing posts with the label python3

Comparing Python 2.x and Python 3.x

Although development of Python started in the late 80’s, Python 1.0 was published in January 1994. Some important features like cycle-detecting garbage collector and Unicode support were added in Python 2.0 which was released in October 2000. Python 3.0 was released in December 2008. It was designed to rectify certain flaws in earlier version. The guiding principle of Python 3 was: "reduce feature duplication by removing old ways of doing things". Python 3.0 doesn’t provide backward compatibility. That means a Python program written using version 2.x syntax doesn’t execute under python 3.x interpreter. Since all the Python libraries are not fully ported to Python 3, Python Software Foundation continues to support Python 2. The foundation has recently announced it will discontinue Python 2 support by year 2020. Some of the obvious differences between the Python 2.x variants and Python 3.x variants are displayed below. 1. Print Python 2.x It is not mandatory to use pa...

What is Python ?

Python is a popular "High Level Programming Language" Lets learn how it came about and what makes it so popular. According to the TIOBE (The Importance Of Being Earnest) community index, Python is currently ranked no. #4. Which is pretty high than the rest. The index is calculated taking various search engine results into account. Python is being used in various application areas such as : Web Development Scientific Computing Data Analytics and so on.... Python supports multiple programming paradigms including : Imperative Object Oriented Procedural Functional programming styles. It is also an Open Source Language. Many developers contribute towards its development. However, Guido van Rossum (BDFL) is the principle author. The Python community has affectionately given him the title of Benevolent Dictator for Life. The Design Philosophy of Python is summarized in a collection of 20 principles.Some of which are : Beautiful is better than ugly. ...