how to find the index of a word in a list of words in python code example Example: get index of list python list.index(element)