how to return the longest string in a list python code example
Example: python longest list in list
def longest(list1):
longest_list = max(len(elem) for elem in list1)
return longest_list
def longest(list1):
longest_list = max(len(elem) for elem in list1)
return longest_list