Nearby lessons

11 of 108

Python - Versions

Introduction

Python has evolved through many versions over the years.

Each new version introduced improvements, new features, and better performance.

Today, Python 3 is the latest and most widely used version.

Python Version History

Version Release Date
Python 1.0 January 1994
Python 2.0 October 2000
Python 3.0 December 2008

Python 1.0

Python 1.0 was the first official version of Python.

Released: January 1994

Main Features:

  • Basic programming features.
  • Functions.
  • Modules.
  • Exception handling.

This version laid the foundation of the Python programming language.

Python 2.0

Python 2.0 introduced many useful features and became very popular.

Released: October 2000

Main Features:

  • List Comprehensions.
  • Garbage Collection.
  • Unicode Support.

Python 2 Example

In Python 2, the print statement was written without parentheses.

🐍
main.py
Python 3 Runtime
Loading Editor...
Output Preview
Hello World

Python 3.0

Python 3.0 introduced major improvements to the language.

Released: December 2008

Main Goals:

  • Improve the language design.
  • Remove outdated features.
  • Make Python more consistent.
  • Improve readability.

Python 3 Example

In Python 3, print() is used as a function.

🐍
main.py
Python 3 Runtime
Loading Editor...
Output Preview
Hello World

Python 2 vs Python 3

Feature Python 2 Python 3
print Statement Function
Unicode Support Limited Full Support
Division Integer division issue Improved division
Support Status No Longer Supported Actively Supported

Backward Compatibility

Python 3 is not fully backward compatible with Python 2.

This means some Python 2 programs may not run directly in Python 3.

For example:

🐍
main.py
Python 3 Runtime
Loading Editor...
Output Preview
Both programs print the same message, but the syntax is different.

Why is Python 3 Preferred?

Python 3 is recommended for all new projects.

  • Better performance.
  • Improved Unicode support.
  • Cleaner and more consistent syntax.
  • Better standard library.
  • Modern libraries support Python 3.
  • Regular updates and security fixes.

Example Program in Python 3

🐍
main.py
Python 3 Runtime
Loading Editor...
Output Preview
Welcome to Python 3
Durga

Recommendation

If you are learning Python today, always choose Python 3.

Python 2 is no longer officially supported, and almost all new applications are developed using Python 3.

Key Points

  • Python has evolved through multiple versions.
  • Python 1.0 was the first official release.
  • Python 2 introduced many important features.
  • Python 3 improved the language and removed outdated features.
  • Python 3 is not fully backward compatible with Python 2.
  • Python 3 is the recommended version for learning and development.

Quick Summary

Version Description
Python 1.0 First official Python release.
Python 2.0 Introduced list comprehensions, garbage collection, and Unicode support.
Python 3.0 Modern version with improved syntax and better language design.

🧠 Test Your Knowledge

8 Questions

Progress: 0 / 8
Keep Going!Python - Identifiers