title: Binary Search python 3.5
body: <p>I'm trying to write binary search in python 3.5 but it wont work I'm not sure why. </p>
  
  <pre><code>def binarySearch(alist, value):
  
      first = 0
      last = len(alist)-1
      midpoint = (last//2)
      while binarySearch:
          if value == alist[midpoint]:
              return True and print ("found")
          else:
              if value &lt; midpoint:
                  last = midpoint-1
              else:
                  if value &gt; midpoint:
                      first = midpoint+1    
  binarySearch([1,2,3,4,5,6,7,8],3)
  </code></pre>
  
  <p>if I put value as 4 it displays found, if I put anything else nothing happens and its stuck running doing nothing. </p>
  
  <p>Thanks for your help.</p>