Lists and collections / Iterators and generators

def counter(low, high, step):
    current = low
    while current <= high:
        yield current
        current += step


for c in counter(392):
    print(c)
# printed 3, 5, 7, 9