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: [19.649, 40.227, 6.273, 113.315, -83.127, 221.628, -68.478, 93.232, 71.073]
Student:
[ 0.047  0.097  0.015  0.274 -0.201  0.536 -0.165  0.225  0.172]