Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find the longest word in an array python code

def find_longest_word(text):
    longest_word = max(text.split(), key = len)
    return longest_word

print(find_longest_word(text))
Source by www.hackinscience.org #
 
PREVIOUS NEXT
Tagged: #find #longest #word #array #python #code
ADD COMMENT
Topic
Name
3+4 =