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: [72.879, 146.85, 61.007, 123.394, 95.598, 144.964, 234.242, -12.725]
Student:
[ 0.084  0.17   0.07   0.142  0.11   0.167  0.27  -0.015]