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: [62.562, 151.025, 201.875, 220.486, -58.335, 158.994, -63.213, -49.984, -77.918]
Student:
[ 0.115  0.277  0.37   0.404 -0.107  0.291 -0.116 -0.092 -0.143]