Sorry for my beginner question. I want to construct decimal range step in for cycle using the following construction:
max_value = 10
my_range = [r * 0.01 for r in range(0, max_value) ]
for i in range ( my_range ): //Error
print (i)
But there is the following error:
TypeError: 'list' object cannot be interpreted as an integer
Your
my_rangeis already a list. Just do: