Built-in function len(): get the length of a list : List Length « List « Python






Built-in function len(): get the length of a list

Built-in function len(): get the length of a list

a = ['spam', 'eggs', 100, 1234]
print len(a)


           
       

Related examples in the same category

1.Get length of a listGet length of a list