Python Version Analysis

and which one to choose

Today we are going to talk about Python 2 and Python 3, in other words, python versions.

If you just started with Python or you are planning to do it, I’m pretty sure you did some basic research about it. You probably opened Google to find out that there are 2 version of python! They are quite different and each one has it’s own amount of followers, so deciding which one to choose is not an easy task, specially if you are starting for the first time with python.

The good news are that if you are new to this programming language, choosing either version will be exactly the same for you. Even if you start with Python 2 and decide to move to Python 3 because the library you need is no longer maintained, you will notice no difference at all. Actually I’m 99% sure your code will run in either version, without any changes.

Python history

Let’s talk a little about Python 2. The first python 2.0 version was released around year 2000 and was heavily used until 2009 when Python 3.0 appeared. In 2010 python 2.7 (the latest 2.x series version) was born, creating the python legacy. But after that date, now more updates has been released for that version. On the other hand, Python 3.6 is being maintained. During the first few years of the transition between 2.7 and 3, many people decided to stay in the 2.x version, but a time went on, there was no other choice but to start migrating all the most important libraries to the actual version.

Nowadays, there are probably no back compatibility with Python 2.7 any longer, and if you are still using the older version, it won’t be long until the library you need is only available for Python 3.

Summary

In late 2018 there is no reason to still be using Python 2.7 All libraries have already been moved to Python 3 and if they didn’t, after almost 10 years, that means you should look up for something more up to date.

See you in the next post!


Leave a comment