title: Searching Names and phonenumbers
body: <p>mine is homework question in response to the previous Question i posted on this site:</p>
  
  <p>i redid the code to the following:</p>
  
  <pre><code>    import re
      people = ["Karen", "Peter", "Joan", "Joe", "Carmen", "Nancy", "Kevin"]
  
      phonenumbers = ["201-222-2222", "201-555-1212", "201-967-1490", 201-333-3333",'201-725-3444", "201-555-1222", "201-444-4656"]
  
  name = raw_input("Enter person's name:")
  
  found = false
  for i in range(0, len(people)):
  
     value = people[i]
     m = ("(" + name + ".*)",value)
  
     if m:
         found = True
         print (people[i], phonenumber[i])
     else:
         print ("No matching name was found.")
  </code></pre>
  
  <p>My question is how do i tell the program to check if Karen's phone number is the 201-222-2222? And Yes this is a homework assignment. I changed the names and the phone numbers in my acutal program.</p>
  
  <p>When i run this program and type any character all the names and phone number show up that's where i'm having difficutly...</p>