Given a list of lists, the length of the longest list can be found with the following code.
values = [[\'a\',\'a\'], [\
This will return the longest list in the list values:
values
max(values, key=len)