Python program to get length and largest word in the sentence | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 2

Python program to get length and largest word in the sentence

4th Apr 2020, 3:43 PM
Kolli Saikeerthi
Kolli Saikeerthi - avatar
3 Antworten
0
you would do something like : if there are no punctuation or special characters other than space. - split the sentence by spaces to get a list with words. - sort the list by length of elements. - take the last element (there may be many words of the same length)
4th Apr 2020, 4:22 PM
Bahhaⵣ
Bahhaⵣ - avatar
- 1
hey Kolli Saikeerthi if you don't mind showing your code attempt to the problem
4th Apr 2020, 4:20 PM
✳AsterisK✳
✳AsterisK✳ - avatar
- 1
Hey I am not geeting output when I do in online compiler
4th Apr 2020, 4:54 PM
Kolli Saikeerthi
Kolli Saikeerthi - avatar