count items in list python by loop code example
Example 1: count items in list python by loop
...
count = 0
for item in animals:
count = count + 1
...
Example 2: count items in list python by loop
for count, item in enumerate(animals):
print("Animal number", count + 1, "in the list is", item)