Answers for "Write the code to display the Python version by importing sys module."

5

python print version

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

python version command notebook

import platform
print(platform.python_version())
Posted by: Guest on May-09-2020

Code answers related to "Write the code to display the Python version by importing sys module."

Python Answers by Framework

Browse Popular Code Answers by Language