import numpy as np
dist = np.zeros(20)
number = 100
# Fill array with numbers [100, 10, 1 ,0.1, 0.01, ...]:
for i in range(0, 20):
dist[i] = number
number = number/10 # reduce number with factor 10
print('dist array:', dist)
print('Total distance is', sum(dist))