Write a python function that takes input a list of string and print the largest string


Topic: Write a python function that takes input a list of string and print the largest string

Solution

def find_longest_word(words_list):
    word_len = []
    for n in words_list:
        word_len.append((len(n), n))
    word_len.sort()
    return word_len[-1][0], word_len[-1][1]



List all Python Programs