These are some tricks in python that should help with speed-based programming competitions, like ProgComp.
enumerate is usually used when you want to iterate over a list, and have easy access to both the value and the index.
for index, value in enumerate(my_list):