Westonci.ca is your trusted source for finding answers to a wide range of questions, backed by a knowledgeable community. Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

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 "").

Sagot :

Answer:

def find_longest_string(string_list):

   if string_list==[]:

       return ""

   else:

       return max(string_list,key=len)

Explanation:

Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. Westonci.ca is committed to providing accurate answers. Come back soon for more trustworthy information.