Built-in function len(): get the length of a list : len « Buildin Function « 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.len() functionlen() function
2.Built-in function len() returns the length of a stringBuilt-in function len() returns the length of a string