def myrange(start, stop, step=1):
    """enumerates the values from start in steps of size step that are
    less than stop.
    """
    assert step > 0, 'only positive steps implemented in myrange'
    i = start
    while i < stop:
        yield i
        i += step
