A function longest_word(text) gives the longest word of a text, and when two words are equally… | StemPy Lab