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:[57.494, 83.175, 236.476, 4.431, -37.851, 139.936, 18.794, 137.979]
Solution:
[ 0.09   0.13   0.369  0.007 -0.059  0.219  0.029  0.215]