#Write a function find_longest_word() that takes a list of words and returns the 
#length of the longest one.

import functools #for reduce function
def longest(agrs=[]):
    print(functools.reduce(lambda x,y:x if (len(x)>len(y)) else y,agrs))
    return len(functools.reduce(lambda x,y:x if (len(x)>len(y)) else y,agrs))
#end of function

#main block

mylist = ['HHAAAAAAAAAAAAAAAAAAAAAAAA','prath','prathmesh']
print(longest(mylist))
    

51d4af46daf630cfbd25ce958c7fd1cf473bc723
<mask token>


def longest(agrs=[]):
    print(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs))
    return len(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs)
        )


<mask token>

<mask token>


def longest(agrs=[]):
    print(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs))
    return len(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs)
        )


<mask token>
print(longest(mylist))

<mask token>


def longest(agrs=[]):
    print(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs))
    return len(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs)
        )


mylist = ['HHAAAAAAAAAAAAAAAAAAAAAAAA', 'prath', 'prathmesh']
print(longest(mylist))

import functools


def longest(agrs=[]):
    print(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs))
    return len(functools.reduce(lambda x, y: x if len(x) > len(y) else y, agrs)
        )


mylist = ['HHAAAAAAAAAAAAAAAAAAAAAAAA', 'prath', 'prathmesh']
print(longest(mylist))

#Write a function find_longest_word() that takes a list of words and returns the 
#length of the longest one.

import functools #for reduce function
def longest(agrs=[]):
    print(functools.reduce(lambda x,y:x if (len(x)>len(y)) else y,agrs))
    return len(functools.reduce(lambda x,y:x if (len(x)>len(y)) else y,agrs))
#end of function

#main block

mylist = ['HHAAAAAAAAAAAAAAAAAAAAAAAA','prath','prathmesh']
print(longest(mylist))
    
