Detailed 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.
Problem:[158.109, 83.907, -43.33, 223.125, 220.166, 16.701, -12.633, 192.648, 0.232]
Solution:
[ 0.188  0.1   -0.052  0.266  0.262  0.02  -0.015  0.23   0.   ]