Answers for "get python version in code"

5

python print version

import sys
print(sys.version)
Posted by: Guest on April-15-2020
11

check python version

python --version
Posted by: Guest on April-28-2020
0

get python version in code

import platform

print(platform.python_version())
Posted by: Guest on November-17-2020
8

check python version

# To check Python version 
python -V
----or----
python --version
Posted by: Guest on March-01-2021
0

check python version

python3 --versionpip3 --version
Posted by: Guest on August-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language