def shortPythonVersion():
 return ('%s.%s.%s' % sys.version_info[:3])

def shortPythonVersion ( ) : return ( '%s.%s.%s' % sys . version_info [ : 3 ] )
returns the python version as a dot-separated string .