0

Guess how can I get the longest word in a sentence in python

Question

5th Feb 2021, 4:03 PM
Chris Jonathan
Chris Jonathan - avatar
2 odpowiedzi
+ 5
Split string at blank white space. Then check length of substrings. Substring with the biggest length is the longest word.
5th Feb 2021, 4:06 PM
Lisa
Lisa - avatar
0
Thanks for the help
6th Feb 2021, 7:36 AM
Chris Jonathan
Chris Jonathan - avatar