In the following code list value is after 0.2 interval. But when I print (h,i_sample) value in the inner most loop why h value is different from the one outside loop?How can I fix this error? If I create list with interval of 0.5 rather than 0.2 it picks correct values(same inside and outside the loops).
list =np.arange(1.0,5.0,0.2)
print(list)
for h in list:
print("Loop: ", h)
for i_sample in range(3):
print(h,i_sample)