def drop_edge_punct(word: str) -> str:
    """
    Remove edge punctuation.
    :param word: a single string
    >>> drop_edge_punct("'fieri")
    'fieri'
    >>> drop_edge_punct('sedes.')
    'sedes'
    """
    if not word:
        return word
    try:
        if not word[0].isalpha():
            word = word[1:]
        if not word[-1].isalpha():
            word = word[:-1]
    except:
        pass
    return word
def drop_edge_punct ( word : str ) -> str : if not word : return word try : if not word [ 0 ] . isalpha ( ) : word = word [ 1 : ] if not word [ - 1 ] . isalpha ( ) : word = word [ : - 1 ] except : pass return word
Remove edge punctuation.
    :param word: a single string
    >>> drop_edge_punct("'fieri")
    'fieri'
    >>> drop_edge_punct('sedes.')
    'sedes'