title: Trying to print a specific key and value from dictionary based on user input
body: <p>I have a program that requires me to to access a dictionary with zip codes and city names called</p>
  <pre class="lang-py prettyprint-override"><code>countyzips = {'90210': 'Beverly Hills', '90001' : 'Los Angeles', etc.}
  </code></pre>
  <p>If the zipcode is in the dictionary I want to have the program print &quot;zip code = 90210 , city = Beverly Hills&quot; for example. And if the zip code is not in the dictionary print &quot;zip code xxxxx is not in Los Angeles County. Right now I can't seem to get the program to work.</p>
  <p>Here is my code so far</p>
  <pre class="lang-py prettyprint-override"><code> zip = input('enter zip code:')
          for x,y in countyzips.items():
              if x in countyzips:
                  print (f'zipcode = {x} , city = {y}')
              else:
                  print (f'zip code = {x} not in Los Angeles county')
  </code></pre>