title: creating Dict, how to update when looping
body: <p>i am looping through a file directory, when i come across a file with some specific text i want to add the file name and modified time to a dictionary, based on my dir i should end up with 7 key, value pairs in my dict. </p>
  
  <p>how do i keep adding key,value pairs to my dict while i loop this dir?  thanks</p>
  
  <pre><code>import os
  import stat
  
  path =r"C:\Users\Gronk\Downloads"
  
  for file in os.listdir(path):
      if 'ConsensusData' in file:
          info = os.stat( path+"\\"+file)
          t = info.st_atime
          x = {}
          x.update({file:t})
  </code></pre>