python3 --version

Category: Python & pip

python3 --version

Print the installed Python version and exit

Prints the Python 3 version number and exits. Useful for checking which version is installed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.