

The first digit represents the major version, the second the minor version, and the third digit represents the micro version or “revision level.”įor example, in Python 3.6.8, 3 is a major version, 6 is a minor version, and 8 is a micro version. Generally, Linux based distros have pre-installed Python version.īefore we can check what version of Python our computer has loaded, we must understand the version scheme of Python. Python is a high-level, general-purpose programming language created by Guido van Rossum. We will learn how to check the python version using the python command as well as how to determine the python version programmatically, from the python console and using python script. In this article, we will cover 3 ways to find the Python version in Linux. How to get the Python version on Linux is a commonly asked question during a Linux job interview.
