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.19, 16.875, 89.701, 183.842, 177.318, 143.688, 248.552, 198.75]
Student:
[-0.018  0.016  0.086  0.177  0.171  0.138  0.239  0.191]