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: [-97.301, 130.939, 7.862, 241.283, -8.481, -45.554, 69.159, 123.499]

A: [-0.231  0.311  0.019  0.573 -0.02  -0.108  0.164  0.293]
****
Q: [69.191, -81.421, 5.74, 74.507, 219.395, 227.243, -46.381, 134.921, -44.54, 65.295]

A: [ 0.111 -0.13   0.009  0.119  0.352  0.364 -0.074  0.216 -0.071  0.105]
****
Q: [218.561, 138.88]

A:
[0.611 0.389]
****