Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python longest word in string

def find_longest_word(word_list):  
    longest_word =  max(word_list, key=len)
    return longest_word
 
PREVIOUS NEXT
Tagged: #python #longest #word #string
ADD COMMENT
Topic
Name
8+6 =