0

Longest string

How to print longest word in a string?

21st Dec 2020, 6:54 AM
Harshita Sharma
Harshita Sharma - avatar
6 Respostas
+ 3
Before asking any question here, just search your question to check whether it is available already. Also, show your initial attempt here first instead of asking entire solution so that community can help you in the problem that you are facing. Thank you
21st Dec 2020, 8:58 AM
Hardik Sharma
Hardik Sharma - avatar
21st Dec 2020, 11:01 AM
Hardik Sharma
Hardik Sharma - avatar
+ 2
Split the sentence into words using split() method. Find the longest word among the words.
21st Dec 2020, 7:48 AM
Temporary
+ 2
You're welcome
21st Dec 2020, 11:04 AM
Hardik Sharma
Hardik Sharma - avatar
0
I am also trying brother. When I didn't got right code after many trials then I uploaded this question here.
21st Dec 2020, 9:30 AM
Harshita Sharma
Harshita Sharma - avatar
0
Thanks..
21st Dec 2020, 11:03 AM
Harshita Sharma
Harshita Sharma - avatar