I am getting the error “index 5 is out of bounds for axis 0 with size 5” for finding the average heights of an array
I am trying to find the average height of an array containing different heights. I have to find it using a while loop. Previously I did it with a for loop and it worked but when I try it this way I keep getting the out of bounds error.
I am getting the error “index 5 is out of bounds for axis 0 with size 5” for finding the average heights of an array
I am trying to find the average height of an array containing different heights. I have to find it using a while loop. Previously I did it with a for loop and it worked but when I try it this way I keep getting the out of bounds error.