Say I want to loop from 0 to 100 but with a step of 1/2. If you try
for i in range(0, 100, 0.5): whatever
If you have numpy, here are two ways to do it:
numpy
numpy.arange(0, 100, 0.5) numpy.linspace(0, 100, 200, endpoint=False)