text files assuming the wordlist file is wordlist txtwe can load the words into list using the line below wordlist [line strip(for line in open'wordlist txt ')example print all three letter words for word in wordlistif len(word)== print(wordnote that this and most of the upcoming examples can be done with list comprehensionsprint([word for word in wordlist if len(word)== ]example print all the words that start with gn or kn for word in wordlistif word[: ]='gn or word[: ]='kn 'print(wordexample determine what percentage of words start with vowel count for word in wordlistif word[ in 'aeiou 'count=count+ print( *count/len(wordlist)example print all -letter words that start with th and end in ly things like this are good for cheating at crosswords for word in wordlistif len(word)== and word[: ]='th and word[- :]='ly 'print(wordexample print the first ten words that start with = while wordlist[ ][ ]!' ' = + print(wordlist[ : +