Is there a way to step between 0 and 1 by 0.1?

I thought I could do it like the following, but it failed:

for i in range(0, 1, 0.1):
    print(i)

Instead, it says that the step argument cannot be zero, which I did not expect.

34 s
34

Leave a Reply

Your email address will not be published. Required fields are marked *