()
return sys.version[:3]
Return a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
Return a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
Return a string containing the major and minor Python version leaving off the patchlevel . Sample return values could be 1 . 5 or 2 . 2 .
def get_python_version():
    """Return a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
    """
    return sys.version[:3]
def get_python_version ( ) : return sys . version [ : 3 ]