In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.

Q: [-92.257, 158.267, 220.992, 69.458, 148.556, 166.415, -58.966, 248.666, -15.456]

A: [-0.109  0.187  0.261  0.082  0.176  0.197 -0.07   0.294 -0.018]
****
Q: [-97.117, -11.802, 57.096, 244.554, 14.606, 59.864, 209.204, 204.511, 5.218]

A: [-0.142 -0.017  0.083  0.356  0.021  0.087  0.305  0.298  0.008]
****
Q: [-21.186, 249.198, 161.646, 2.452]

A:
[-0.054  0.636  0.412  0.006]
****