Header Ads Widget

Program to get the Python version

import sys
print("Python version")
print (sys.version)
print("Version info.")
print (sys.version_info)
Output:-
Python version                                                                                                
3.5.2 (default, Sep 10 2016, 08:21:44)                                                                        
[GCC 5.4.0 20160609]                                                                                          
Version info.                                                                                                 
sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0)   

Post a Comment

0 Comments