Friday, November 24, 2017

Python 2 vs. Python 3

Python 2 vs. Python 3:

Actually if you know anything about Python then you must be thinking of which version of Python I should use.the iternal debate.
online forums are full of speeches that you should use python 2 because of this and you should use python 3  because of that but in reality just use python 3.
Actually, pyhton 3 is facing adoption problem.it doesn't go smoothly as it should go thats why people  using Python 2 still comes bundled on many default systems.however Python 2 is going to end his life in 2020.

Python 2  vs.Pyhton 3:

Python 2 :

1)Maintained, but no new features
2)End of Life(EOL) in 2020;
3)Still default on many systems.
print " Hello World"

Python 3 :

1)New fetaures being added.
2)Unicode support by default.
3)Cleared some Pyhton 2 confusion
print("Hello World")

Minor differences from Python 2

Pyhton released in December 2008 but still facing adoption problems.There are not differences between Pyhtonh 2 and Pyhtonh 3 as far as Sytaxes are concerned.as a developer you must have noticed that in Python 2 printing hello world is different and in Python 3 is different.if tell you in more detail in Python 3 ,it is a funtion but as you can see in python 2 it is simple print and double quotes .                    

No comments: