title: Pythonic way to populate a dictionary from list of records
body: <p><strong>Background</strong></p>
  <p>I have a module called <code>db.py</code> that is basically consist of wrapper functions that make calls to the db. I have a table called nba and that has columns like <code>player_name</code> <code>age</code> <code>player_id</code> etc.</p>
  <p>I have a simple function called <code>db_cache()</code> where i make a call to the db table and request to get all the player ids. The output of the <code>response</code> looks something like this</p>
  <pre><code>[Record(player_id='31200952409069'), Record(player_id='31201050710077'), Record(player_id='31201050500545'), Record(player_id='31001811412442'), Record(player_id='31201050607711')]
  </code></pre>
  <p>Then I simply iterate through the list and dump each item inside a dictionary.</p>
  <p>I am wondering if there is a more <strong>pythonic way to populate the dictionary</strong>?</p>
  <p><strong>My code</strong></p>
  <pre><code>  def db_cache():
          my_dict: Dict[str, None] = {}
          response = db.run_query(sql=&quot;SELECT player_id FROM nba&quot;)
          for item in response:
              my_dict[item.player_id] = None
          return my_dict
      
      
      my_dict = db_cache()
  </code></pre>