All sub-arrays with sum less than X and greater than Y

def find_subarr(arr: tuple, value):
    arr = tuple(arr)
    if sum(arr) <= value:
        return set()

    ret = { arr }
    for i in range(len(arr)):
        tmp_arr = list(arr)
        del tmp_arr[i]
        tmp_arr = tuple(tmp_arr)
        ret |= find_subarr(tmp_arr, value)

    return ret

subarrays = find_subarr([0.1,0.2,0.3,0.4,0.5], 0.4)
for subarr in sorted(subarrays, key=lambda l: (len(l), sum(l))):
    print(subarr)

This returns all sub-arrays with sum greater than 0.4

I want to add one more condition that sum should be less than 0.7

Tried changing Line 3 with if (sum(arr) <= value or sum(arr) >= 0.7) but it doesn't work.