12345
Back to Lesson

Indexed Listing

Use the enumerate structure to label sequence instances.

Instructions

  • Given
    tasks = ["Wash car", "Buy groceries", "Schedule appointment"]
    .
  • Re-format this list explicitly tracking position using enumerate!
  • Build a loop that prints
    - <Index>: <Task>
    structure for each item. Start counting at 1.
main.py
main.py