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: [217.544, 40.98, 248.807, -57.65, 30.479, 72.866, -41.584, 35.938, -7.614, 244.08]
Student:
[ 0.278  0.052  0.317 -0.074  0.039  0.093 -0.053  0.046 -0.01   0.311]