ListDescriptionIn

Second opinion] ListDescriptionIn this exercise you will find the longest string from a list of strings. Longest refers to the string with the largest number of characters. If two strings have the same number of characters, always choose the one that came first in the list. There will always be at least one string in the list.Function Namelongest_stringParametersstrings: A list of stringsReturn ValueThe longest string in strings.Exampleslongest_string([“a”, “aa”, “b”]) -> “aa”

Tags: No tags