(name)
return name[-2:].isalpha() and name[-2:].isupper()
Return True if name is an API extension name (ends with an upper-case
    author ID).

    This assumes that author IDs are at least two characters.
Return True if name is an API extension name (ends with an upper-case
    author ID).
Return True if name is an API extension name ( ends with an upper - case author ID ) .
def isextension(name):
    """Return True if name is an API extension name (ends with an upper-case
    author ID).

    This assumes that author IDs are at least two characters."""
    return name[-2:].isalpha() and name[-2:].isupper()
def isextension ( name ) : return name [ - 2 : ] . isalpha ( ) and name [ - 2 : ] . isupper ( )