# Iterates over a list by index students = ["Hermione", "Harry", "Ron"] for i in range(len(students)): print(i + 1, students[i])