Python Enumerate Function Explained In Math