I do have a while loop without an iterable:

```
n = 0 
while x0 > xmin:
    xy.createSomeCube(x0,y0,z0,x1,y1,z1)
    xy.someCube(n).setSomeParameters(dx,dy,dz)

    ...

    x0 -= someDecrement(someArgument)

    ...

    n += 1

```

Is there an elegant way to omit the `n = 0` and the `n += 1` and to get the index of the current step in the while loop?