If you need the integer index of each item as well as its value, use the global enumerate
function to iterate over the array instead. The enumerate function returns a tuple for each
item in the array composed of the index and the value for that item. You can decompose
the tuple into temporary constants or variables as part of the iteration: