Binary Search Algorithm with interval
<p>I am trying to change my code so instead of finding a specific value of the array it will output the value of an interval if found, example being 60-70. Any help is appreciated. </p>

<pre><code>def binary (array, value):

    while len(array)!= 0:
        mid = len(array) // 2

        if value == array[mid]:           
            return value
        elif value &gt; array[mid]:       
            array = array[mid+1:]
        elif value &lt; array [mid]:          
            array = array[0:mid]

sequence = [1,2,5,9,13,42,69,123,256]

print( "found", binary(sequence,70) ) 
</code></pre>

<p>I have this so far and want it to find an specified interval, so if i specify 60-70 it will find what is in between. </p>