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:[-23.299, 119.583, 118.023, -30.139, -34.933, 219.428, 79.481, -47.161]
Solution:
[-0.058  0.298  0.294 -0.075 -0.087  0.547  0.198 -0.118]