► Python program to get the Python version you are using


Steps followed:
1. import sys library
2. user version function to print sys library


Program

# Python program to get the Python version you are using

#import sys library
import sys

#print python version
print("Python version")

print (sys.version)


Output

Python version
3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]





Also Read: