Answers for "python get the version code"

0

get python version in code

import platform

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

python show current version

import sys
print("Python version")
print (sys.version)
print("Version info.")
print (sys.version_info)
Posted by: Guest on April-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language