title: Input a number, Search through Lists and Dictionary, print associated key
body: <p>I am having an issue pulling from a combined dictionary and list. I understand how to pull keys from each one individually but I need to combine them and pull the keys from both. The following is an Example of a dictionary listing years. Each year has a title and director associated with it.</p>
  
  <pre><code>movie_collection = {
      2005: {'Title':'Munich','Director':'Steven Spielberg'},
      2005: {'Title':'The Prestige','Director':'Christopher Nolan'},
      2006: {'Title':'The Departed','Director':'Martin Scorsese'},
      2007: {'Title':'Into the Wild','Director':'Sean Penn'},
      2008: {'Title':'The Dark Knight','Director':'Christopher Nolan'},
      2009: {'Title':'Mary and Max','Director':'Adam Elliot'},
      2010: {'Title':'The King''s Speech','Director':'Tom Hooper'},
      2011: {'Title':'The Artist','Director':'Michel Hazanavicius'},
      2011: {'Title':'The Help','Director':'Tate Taylor'},
      2012: {'Title':'Argo','Director':'Ben Affleck'},
      2013: {'Title':'12 Years a Slave','Director':'Steve McQueen'},
      2014: {'Title':'Birdman','Director':'Alejandro G. Inarritu'},
      2015: {'Title':'Spotlight','Director':'Tom McCarthy'},
      2016: {'Title':'The BFG','Director':'Steven Spielberg'}
  </code></pre>
  
  <p>}</p>
  
  <p>I also have the code prompting for an input year between 2005 and 2016. If the year is not between those years it will print a N/A.</p>
  
  <pre><code>input_year = int(input('Enter a year between 2005 and 2016:\n'))
  if input_year &lt; 2005:
      print('N/A')
  elif input_year &gt; 2016:
      print('N/A')
  else:
      print(input_year)
  </code></pre>
  
  <p>Now here is where I am having an issue. Right after the else statment, I need to also print the title and director of the movies associated with the input year. Example if you input the year 2011 the output needs to be:</p>
  
  <p>Enter a year between 2005 and 2016:
  2011
  The Artist, Michel Hazanavicius
  The Help, Tate Taylor</p>
  
  <p>I have the following code written.</p>
  
  <pre><code>if input_year in movie_collection:
      for Title,Director in movie_collection.values():
          print(Title,',',Director)
  </code></pre>
  
  <p>But it does not output the correct information. </p>
  
  <pre><code>Enter a year between 2005 and 2016:
  2011
  Director , Title
  Director , Title
  Director , Title
  Director , Title
  ...
  </code></pre>
  
  <p>I have tried listing it multiply ways but it sill not pull the information correctly. I am still new to python and I did try google and bing with no luck on the information I seek. Can anyone point me in the right direction? Have I written the dictionary incorrectly? Or am I just not using the correct way to print the information.Thanks  </p>