title: python program not giving desired result
body: <pre><code>def main():
      names=[0]*10
      for index in range(len(names)):
          names[index] = input("Enter word " + str(index + 1) + ": ")
      bubbleSort(names)
      print("Names in Alphabetical order:")
      print(names)
  def bubbleSort(names):
      for maxElement in range(len(names)-1, 0, -1):
          for index in range(maxElement):
              if names[index] &gt; names[index+1]:
                  temp = names[index]
                  names[index] = names[index+1]
                  names[index+1] = temp
      found = False
      index=0
      while found == False and index &lt; len(names):
         Searchword= input('enter a searchword:')
         if scores[index] == Searchword :
              found = True
          else:
              index = index + 1
      if found:
          print("Found")
      else:
          print("Not Found")
  
  main()
  </code></pre>
  
  <p>Does everything required accept when a Searchword is entered that cannot be found it does not print 'not found' but only keeps asking for input.</p>