Python 2.x vs 3.x
- Python 2.0 was first released in 2000.
- Its latest version, 2.7, was released in 2010. Python 3.0 was released in 2008
- In 2016, 71.9% of projects used Python 2.7, but by 2017, it had fallen to 63.7%..
- Python 2 is legacy, python 3 is the future.
- Python 2 and python 3 have different (sometimes incompatible) libraries
- there is better unicode support in python 3 In Python 3, text strings are Unicode by default. In Python 2, strings are stored as ASCII by default–you have to add a “u” if you want to store strings as Unicode in Python 2.x.
- Python 3 has improved integer division
- The two versions have different print statement syntaxes