python3 --version or
python --version For more details (build date, compiler, etc.): check python version on linux
1. Check Python 3 Version Most modern Linux distributions come with Python 3 pre-installed. python3 --version or python --version For more details
python2 --version or
python3 -V Python 3.10.12 2. Check Python 2 Version (if installed) Some older systems or legacy applications still use Python 2. check python version on linux