How to Find the Length of a List in Python

Spread the love

Find Length of a List –

To find the length of a list, you can use the len() function. There are five items in this list so the length should be 5.

In [9]: companies
Out[9]: ['Amazon', 'Microsoft', 'Apple', 'Facebook', 'Google']

In [10]: len(companies)
Out[10]: 5

Rating: 1 out of 5.

Leave a Reply