deflongest_word(text:str)->int:returnmax([len(word)forwordintext.split()ifnotword.isspace()])content="Create a function to return the longest word(s) in a sentance."print(longest_word(content))# 9
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
Python solution ๐