# 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])