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: [-26.447, -6.071, -41.554, 61.374, 220.296, -69.718, 83.987, -30.119, -71.182]

A: [-0.219 -0.05  -0.345  0.509  1.827 -0.578  0.697 -0.25  -0.59 ]
****
Q: [236.436, 107.458, -65.81, 155.073, 106.741, 120.439, 79.421, 163.684, 103.981]

A: [ 0.235  0.107 -0.065  0.154  0.106  0.12   0.079  0.162  0.103]
****
Q: [-5.883, -44.747, 190.393, -78.051, -82.582, -32.858, 197.575, 106.355]

A:
[-0.024 -0.179  0.761 -0.312 -0.33  -0.131  0.79   0.425]
****