find the length of lists of lists python code example
Example 1: python list length
# example of len() function
list_number = [6, 3, 8, 0]
length = len(list_number)
print("The lentgh of the list is: " + str(length))
Example 2: from a list of lists - find all length of list
# max length of walks
len(max(walks, key=len))
# min length of walks
len(min(walks, key=len))
# mean lenght of walks
mean([len(l) for l in walks])