Answers for "Write a Python program to display version of python"

5

python print version

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

get python version in code

import platform

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

Code answers related to "Write a Python program to display version of python"

Python Answers by Framework

Browse Popular Code Answers by Language