The code down below goes through the Vals function and it assorts through the Numbers value and adds up all the sums after the sorting. I am trying to append the SUM values to the T_SUM to store the values of each SUM for each sort.
Vals= np.arange(start=60, stop=105, step=5)
Numbers = np.array([123.6, 130 , 150, 110.3748, 111.6992976,
102.3165566, 97.81462811 , 89.50038472 , 96.48141473 , 90.49956702, 65])
T_Sum = np.array([])
p= 0
while len(Vals) != p:
Numbers= np.where(Numbers >= Vals[p],Numbers ,0 )
p = p + 1
SUM = np.sum(Numbers)
T_Sum = np.concatenate((T_Sum, SUM))
print(T_Sum)