Using itertools.cycle()