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: [121.343, 235.932, 141.362, -59.535, 2.41, 77.487, 13.513, -21.427, -21.66, 106.013]
Student:
[ 0.204  0.396  0.237 -0.1    0.004  0.13   0.023 -0.036 -0.036  0.178]