Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [-49.204, 146.754, 27.336, 146.914, -86.439, -74.293, 37.521, -9.045]
Student:
[-0.353  1.052  0.196  1.053 -0.619 -0.532  0.269 -0.065]