sum each value in a list to all previous values including extra value between them
im trying to add the value of each element in a list to all previous values without using numpy of any other library.
the list (dis) represent the length of elements which i need to calculate their positions if i want to place them and have 100 mm distance between each of them.