Create a function get_longest_sublist that takes a single parameter, which is a list of lists. Complete the function such that it returns the longest sublist in lists. If the parameter is empty then simply return an empty list.

See Answers (1)

Accepted Answer

Using the knowledge in computational language in python it is possible to write the code that create a function get_longest_sublist that takes a single parameter, which is a list of lists.Writting the code:import astdef get_longest_sublist(l):    max=len(l[0])    for i in l:        if len(i)>max:            max=len(i)            p=i    return pstr=input()print(get_longest_sublist(ast.literal_eval(str)))See more about python at brainly.com/question/18502436#SPJ1

Related Question in Computers and Technology