
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