IDNLearn.com is designed to help you find accurate answers with ease. Discover reliable answers to your questions with our extensive database of expert knowledge.

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:

Your participation is crucial to us. Keep sharing your knowledge and experiences. Let's create a learning environment that is both enjoyable and beneficial. Thank you for trusting IDNLearn.com with your questions. Visit us again for clear, concise, and accurate answers.