item_count = 0 for item in list: item_count += 1 return item_count count([1,2,3,4,5]) (The list object must be iterable, implied by the for..in stanza.) The lesson here for new programmers is: You can’t get the number of items in a list without counting them at some point. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.