enumerate
When you need both the position and the item, use enumerate:
for i, name in enumerate(names):
Writing for i in range(len(names)): and then names[i] works, but it is
noisier and easy to get wrong. Interviewers read it as a sign of someone new
to Python.
enumerate(items, start=1) counts from 1, handy for numbered output.
for i, name in ... unpacks each (index, item) pair into two names. It is
the same unpacking as a, b = b, a.
Run it, then rewrite the search loop from the last page with enumerate.