Detailed Instructions: 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.
Problem:[40.347, 147.636, 97.622, -61.427, 176.155, -51.785, 160.001, -96.916]
Solution:
[ 0.098  0.359  0.237 -0.149  0.428 -0.126  0.389 -0.235]