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: [238.724, 233.675, 143.563, -44.834, 195.138, 129.475, -64.207]

A: [ 0.287  0.281  0.173 -0.054  0.235  0.156 -0.077]
****
Q: [7.908, 48.762, 119.923, 5.289, 118.145, -62.401]

A: [ 0.033  0.205  0.505  0.022  0.497 -0.263]
****
Q: [35.714, -93.944, -73.993, -87.822, -31.519, -21.265, 4.981, 38.891, 168.55, 61.717]

A:
[ 27.263 -71.713 -56.483 -67.04  -24.06  -16.233   3.802  29.688 128.664
  47.112]
****