def python_major():
 result = sys.version_info[0]
 return result

def python_major ( ) : result = sys . version_info [ 0 ] return result
return an integer corresponding to the major version # of the python interpreter were running on .