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:[-37.991, 221.383, 227.246, 226.522, -87.382, 185.082, -10.346, 50.491]
Solution:
[-0.049  0.286  0.293  0.292 -0.113  0.239 -0.013  0.065]