>Wrap an iterable with enumerate and it will yield the item along with its index.
Now that's a feature I wish I knew about sooner. I've been using:
for item in a:
print a.index(item), item
which has always felt kludgy.