title: python continuously prompting for user input until a certain word is entered
body: <p>My code is working for the first input, but now I want to re-prompt the user for their input and repeat the process until the user enters 'stop'. I have tried placing my code within another while loop, creating a different function definition and putting code within the existing if statements. 
  here is my code so far:</p>
  
  <pre><code>def findInfo(myList, target):
      list.sort(myList)
      #print myList, target
      guesses = 0
      low = 0
      high = len(myList)-1
      mid = (high + low) / 2
      while high &gt;= low:
          if target == myList[mid][0]:
              print "Here are your results:"
              print 'state:', myList[mid][0]
              print 'total number:', myList[mid][1]
              print '% passed:', myList[mid][2]
              print '% female students:', myList[mid][3]
              return True            
          elif target &gt; myList[mid][0]:
              low = mid + 1
              guesses += 1
              print "guess", guesses
          elif target &lt; myList[mid][0]:
              high = mid - 1
              guesses += 1
              print "guess", guesses
          mid = (high + low)/ 2
      print False, "no match found"
      return False   
  </code></pre>
  
  <p>I'm just really confused about where to put the code to re-ask the user for input until a certain word in entered. </p>