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: [-29.044, 117.974, 41.038, 77.013, 213.377, 163.32, 124.106, 130.678]
Student:
[-0.035  0.141  0.049  0.092  0.254  0.195  0.148  0.156]