how can we get the length of a list code example
Example 1: python get the length of a list
studentGrades = [9.1, 8.8, 10.0, 7.7, 6.8, 8.0, 10.0, 8.1, 10.0, 9.9]
print(len(studentGrades))
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])