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: [-13.38, 110.084, -2.113, 41.332, 249.069, 214.014, 18.228, 117.304]
Student:
[-0.018  0.15  -0.003  0.056  0.339  0.291  0.025  0.16 ]