You can provide len_items here as the start argument to `enumerate` rather than adding manually.