I have a specific list with up to 6 float numbers and I need a function to choose which of these 6 numbers when added up result in a number in a given interval for example: 29 < Sum < 31.
list = [0.96, 6.72, 4.8, 7.68, 24.96, 6.72]
min_number = 29
max_number = 31
If it is possible I would also like to be able to move the resulting floats to a new list, and the rest to another list.