len() provides the total number of elements in the tuple . : Length « List « Python Tutorial






nameList = ['A', "B", 'C', 'D', 'E']

print len(nameList)
print range(len(nameList))








7.14.Length
7.14.1.Get the length of a list
7.14.2.len() provides the total number of elements in the tuple .
7.14.3.Creating, accessing and changing a list.
7.14.4.Creating a histogram from a list of values.