def frange(start, stop, increment):
    """
    Custom iterator to iterate in floating point steps.
    :return: Generator of steps between start and stop

    Example:
        for n in frange(0, 4, 0.5):
        print(n)
    """
    x = start
    while x < stop:
        yield x
        x += increment
