0
Longest word Test Case 3
Hey my code for longest word in Python works. It has ticked the first two test cases as completed but the third test case is still locked. Any ideas how I fix it? txt = input() #your code goes here def find_longest_word(single_words): single_words = txt.split(" ") i = 0 for word in single_words: if len(word) > len(single_words[i]): i += 1 return word print(find_longest_word(txt))
1 Antwort
+ 2
Share the code bit link in your post Description. Without code review, it's hard to say or suggest anything ...
https://www.sololearn.com/post/75089/?ref=app