text = "Tough times never last, but tough people do" words = text.split() longest_word = max(words, key=len) print(longest_word,len(longest_word))
To embed this project on your website, copy the following code and paste it into your website's HTML: