Concept Flow - enumerate() function
Start with iterable
Call enumerate(iterable)
Create index=0
For each item in iterable
Yield (index, item)
Increment index by 1
↩Back to For each item
The enumerate() function takes an iterable and returns pairs of (index, item) starting from zero, increasing the index by one each time.