0
How can i find the longest word in text which is given?
txt = input() print(max(txt.split(", "))) Where is my mistake ? What should i change ?
2 odpowiedzi
+ 3
you got split right! (if the comma is really needed)you may want to look into the len() function and compare to max()
+ 1
I got u thanks bro