Python 2 VS Python 3

Difference between Python 2 and Python 3

  1. Python 2 is now a legacy due to the current version of Python 3 in use.
  2. The print keyword is the build in function in python 3
  3. Developers took time to adopt Python 3 as it was not compatible with Python 2
  4. To overcome the problem of backward compatibility, Python 2.7 was released 2010.
  5. This compatibility support included improved modules for version 2.7 such as Unittest for test automation and Argparse for parsing command line options.
Python 2 vs Python 3

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store