Get length of a list : List Length « List « Python





Get length of a list

Get length of a list

print len([1, 2, 3])                    # length

           
       

Related examples in the same category

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