find longest word in string python code example
Example 1: python longest word in string
def find_longest_word(word_list):
longest_word = max(word_list, key=len)
return longest_word
Example 2: how to find the longest string python
max(a_list, key=len)