title: Python: How do you make an area code finder?
body: <pre><code>def areacode():
      code={}
      cont='Yes'
      while cont == 'Yes':
          num=int(raw_input('Type in a zip code:')
          if num==407:
              print "Found in Florida"
          elif num==718:
              print "Found in New York"
          elif num==201:
              print "Found in New Jersey"
          elif num==408:
              print "Found in California"
          else:
              print "Zip code not found."
          cont=raw_input("Would you like to continue? Yes or No?: ")
  </code></pre>
  
  <p>I am stuck on how to continue and what to do next. I know what I have is not much, but any direction as to where to go on next would be nice. How would I make this into a nested dictionary? </p>
  
  <p>And there happens to be an error in my if statement, it's telling me that there is an invalid syntax. I don't seem to see what's wrong though. </p>