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: [-98.75, 85.139, 163.504, 111.012, 63.444, 131.515, 120.576, 157.421]
Student:
[-0.135  0.116  0.223  0.151  0.086  0.179  0.164  0.215]