# example of len() function list_number = [6, 3, 8, 0] length = len(list_number) print("The lentgh of the list is: " + str(length))
studentGrades = [9.1, 8.8, 10.0, 7.7, 6.8, 8.0, 10.0, 8.1, 10.0, 9.9] print(len(studentGrades))
my_list = ['20', '40', '60'] len(my_list) # 3
list1 = [1,2,3] print(len(list))
thistuple = ("apple", "banana", "cherry") print(len(thistuple))
my_list = [1,2,3,4,5,6,7,8,9,10] length_of_list = len(my_list)
li = [None] * 5 # [None, None, None, None, None] li = [0] * 5 # [0, 0, 0, 0, 0]