def filter_green(word_list, letter, indices: list[int]):
    """filters out words that don't have a given letter in a specified spot"""
    for index in indices:
        word_list = [word for word in word_list if word[index] == letter]
    return word_list