👤

The function below takes one parameter: a list (string_list) that contains only strings. Complete the function to return the longest string from the list. If the list is empty, return an empty string (i. E "").

Answer :

Answer:

def find_longest_string(string_list):

   if string_list==[]:

       return ""

   else:

       return max(string_list,key=len)

Explanation:

Go Teaching: Other Questions