New course! Every coder should learn Generative AI!
Try a free lesson0
Guess how can I get the longest word in a sentence in python
Question
2 Answers
+ 5
Split string at blank white space. Then check length of substrings. Substring with the biggest length is the longest word.
0
Thanks for the help