def last_char(word):
    for i in range(len(word)):
        if word[((len(word) - 1) - i)].isalpha():
            return ((len(word) - 1) - i)
def last_char(word):
    for i in range(len(word)):
        if word[((len(word) - 1) - i)].isalpha():
            return ((len(word) - 1) - i)