1# example of len() function
2
3list_number = [6, 3, 8, 0]
4
5length = len(list_number)
6print("The lentgh of the list is: " + str(length))
1List = ["Elephant", "Snake", "Penguin"]
2
3print(len(List))
4
5# With the 'len' function Python counts the amount of elements
6# in a list (The length of the list).
7# In this case the output is '3' because there are 3 elements in the list.
1studentGrades = [9.1, 8.8, 10.0, 7.7, 6.8, 8.0, 10.0, 8.1, 10.0, 9.9]
2print(len(studentGrades))