Sometimes you need both the index and value while iterating. The enumerate() function provides both.
Instead of the awkward for i in range(len(list)): pattern, write: python fruits = ["apple", "banana", "cherry"] for i, fruit in enumerate(fruits): print(f"{i}: {fruit}") This prints 0: apple, 1: banana, 2: cherry. By default, enumeration starts at , but you can change it: enumerate(fruits, start=1) makes indices , , .
Use enumerate() when you need position information. For numbered output, tracking progress, or accessing adjacent elements by index while still having the current value directly.