4.2.11 Looping Over Lists & enumerate()

Unit: Unit 4: Strings, Lists, and Tuples • Interactive Practice

Quick Answer & Summary:

Interactive Python programming tutorial and practice in your browser.

Interactive Challenge (Run Live in Browser):

# Iterate over project milestones with 1-based index ranking
milestones = ["Design Architecture", "Core Database", "REST API", "QA Verification"]

# Enumerate through milestones starting at position 1
for step_number, title in enumerate(milestones, start=1):
    print(f"Milestone {step_number}: {title}")
Open in Live Interactive Python Sandbox →