Differences Between Python 2 and Python3

This is a generic, practical approach that can help you navigate the ambiguity.

Zaid Alissa Almaliki
3 min readJul 18, 2021

Many Python practitioners reached out to me. Asking about which version of Python they should start. My answer to this question is usually something along the lines. Choose the latest version, and check out the differences later on.

But if you are looking for job, which one you study first? I would say you need to learn both of Python 2.7.x and Python 3.x. Because some companies have the old code written in Python 2.7.x. So you must understand it. Because you will spent most of your programming life reading code more than writing code. And regrading writing new code will be in Python 3.x. So is worthwhile to have a look at the major differences. Between those two most popular versions of Python. To avoid common pitfalls when writing the code for a new project.

History

Python 2

  • Python 2.0 — October 16, 2000
  • Python 2.1 — April 17, 2001
  • Python 2.2 — December 21, 2001
  • Python 2.3 — July 29, 2003
  • Python 2.4 — November 30, 2004
  • Python 2.5 — September 19, 2006
  • Python 2.6 — October 1, 2008

--

--

Zaid Alissa Almaliki
Zaid Alissa Almaliki

Written by Zaid Alissa Almaliki

Data Engineer, LinkedIn and Twitter Top Voice. Contributing to leading platforms like Towards Data Science.

No responses yet