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:[122.986, 240.103, 213.536, 102.987, 116.096, -97.647, 152.513, 155.703]
Solution:
[ 0.122  0.239  0.212  0.102  0.115 -0.097  0.152  0.155]