Given a list of words and a target word, write a function in Python that finds the index of target word in the list.
words = ["hello", "world", "another"], target_word = "world"
def find_word_index(words, target_word):
    for i, word in enumerate(words):
        if word == target_word:
            return i
    return -1

word_index = find_word_index(words, target_word)
print(word_index)