def longestWord(words):
    longest = ""
    for word in words:
        if len(word) > len(longest):
            longest = word
    return longest

words = ['cat', 'banana', 'dog', 'nana', 'walk', 'walker', 'dogwalker']
print(longestWord(words))
6dcf0e8fcb8f7104bddb0b72f1c22c5f0414bb0c
<mask token>

def longestWord(words):
    longest = ''
    for word in words:
        if len(word) > len(longest):
            longest = word
    return longest


<mask token>

def longestWord(words):
    longest = ''
    for word in words:
        if len(word) > len(longest):
            longest = word
    return longest


<mask token>
print(longestWord(words))

def longestWord(words):
    longest = ''
    for word in words:
        if len(word) > len(longest):
            longest = word
    return longest


words = ['cat', 'banana', 'dog', 'nana', 'walk', 'walker', 'dogwalker']
print(longestWord(words))

def longestWord(words):
    longest = ""
    for word in words:
        if len(word) > len(longest):
            longest = word
    return longest

words = ['cat', 'banana', 'dog', 'nana', 'walk', 'walker', 'dogwalker']
print(longestWord(words))