(word)
return indices
returns a list of character indices

    Args:
        word: string
    
    Return:
        indices: int list with length len(word)
returns a list of character indices
returns a list of character indices
def word_to_indices(word):
    '''returns a list of character indices

    Args:
        word: string
    
    Return:
        indices: int list with length len(word)
    '''
    indices = []
    for c in word:
        indices.append(ALL_LETTERS.find(c))
    return indices
def word_to_indices ( word ) : indices = [ ] for c in word : indices . append ( ALL_LETTERS . find ( c ) ) return indices