I am trying to make an array from a loop and I keep getting 0s printed rather then the changes values, there are a few float comments from earlier in the program that are used in the function but I think its a typo as to why it isn't working.
print()
pred_position = zeros(int(600*max_chase_time))
i = 0
j = speedofpredator
while i>0 and 0<max_chase_time:
pred_position[i] = i + j*0.1
i = i + 1
print(pred_position)
print()
prey_positions = zeros(int(600*max_chase_time))
b = 0
j = speedofpredator
while b>0 and 0<max_chase_time:
prey_positions[b] = b + initpositions + j*0.1
b = b + 1
print(prey_positions)
These are my two loops and arrays.