Use range iterator in Python 2.x