for i in range(len(li)): BAD

Published

for i in li: print i GOOD