Instructions: 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.
Input: [101.179, 148.411, 218.464, 127.746, 221.33, -72.769, 53.502, 31.598]
Output:
[ 0.122  0.179  0.263  0.154  0.267 -0.088  0.065  0.038]