title: phone number lookup program
body: <p>I am having a problem with my array homework, I need to enter a name then the program has to return the number, but all I can get it to do is return all of them</p>
  
  <pre><code>def main():
      people = ['todd','david','angela','steve','bob','josh','ben']
      phoneNumbers = ['234-7654','567-1234','888-8745','789-5489','009-7566','444-6990','911-9111']
  
      found = False
      index = 0
  
      searchValue = raw_input('Enter a name to search for phone number: ')
  
      while found == False and index &lt; len(people):
          if people[index] == searchValue:
              found = True
          else:
              index = index + 1
  
      if found:
          print 'the phone number is: ',phoneNumbers
      else:
          print 'that name was not found'
  
  main()
  </code></pre>