Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #lists #find #length #list
ADD COMMENT
Topic
Name
9+8 =