Python, Python Programming, Programming.
enumerate(fruits, start=1): print(f"Item {index}: {fruit}") enumerate(fruits, start=1) creates an iterator that produces pairs of (index, fruit) as you loop through the fruits list. The start=1 parameter sets the initial index to 1 instead of the default 0. As a result, the code will output: Item