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: [140.855, 45.429, 82.467, 66.926, 230.79, 3.102, 109.697, 229.508, -72.77, 31.205]
Student:
[ 0.162  0.052  0.095  0.077  0.266  0.004  0.126  0.265 -0.084  0.036]