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: [21.308, 231.59, 241.191, 130.902, 17.695, -23.559, -91.242, 125.559, 145.341]

A: [ 0.027  0.29   0.302  0.164  0.022 -0.029 -0.114  0.157  0.182]
****
Q: [74.977, 209.869]

A: [0.263 0.737]
****
Q: [99.445, 54.171, 207.847, 197.599, 86.66, -71.351, 160.909, 45.767, 192.477, -9.736]

A:
[ 0.103  0.056  0.216  0.205  0.09  -0.074  0.167  0.047  0.2   -0.01 ]
****