I want a list maxIndexList in which all elements are to be equal to 0 like this
maxIndex = 0
maxIndex2 = 0
maxIndex3 = 0
maxIndex4 = 0
maxIndex5 = 0
But I want the number of elements to be the same as the number of elements of arrivalDistanceList
a = 23 + 3
b = 5
step = 2
arrivalDistanceList = [meanSpeed * i for i in range(a, a + b * step, step)]
Is this the right way to go about it?
for i in range(len(arrivalDistanceList)):
maxIndexList = [0] + i