title: Creating a dictionary from a file with filenames and keys
body: <p>I only get the date in the list now instead of the location, date, and caption in the list when I test this. Can anyone please help me fix this? The end result is supposed to look like this.</p>
  
  <pre><code>{filename: [location, date, caption]}
  </code></pre>
  
  <p>Here is the file.</p>
  
  <pre><code>images/skating.jpg,East York Arena,2014.11.03,Shea skating.,skating,Shea,boy
  images/sunglasses.jpg,High Park,2013.02.03,Cool guy.,Shea,sunglasses,happy
  images/skating2.jpg,East York Arena,2014.11.03,Shea skating 
  again!,skating,Shea
  
  def create_image_dict(open_csv_file):
  '''(file) -&gt; dict of {str: list of str}
  
  The open csv file has the format:
  filename,location,date,caption,keywords,keywords, ...
  Return a dictionary with key filename and values [location, date, caption]
  '''
  d = {}
  for line in open_csv_file:
      info = line.split(',')
      filename = info[0]
      location = info[1]
      date = info[2]
      caption = info[3]
      if location not in d:
          d[filename] = {location:{date: caption}}
  return d
  </code></pre>