Error in setting a for loop

This is looping on an array that contains a range. You want to loop on the range itself: for x in 0.0:0.1:1.0e9.

4 Likes