title: Python: Dictionary key name that changes dynamically in a loop
body: <p>My minimal working example is the following: I have a loop iterating a certain number of times. At each iteration, I would like to create a new key with a name depending on the current index value, for instance key_j, and assign a certain value to it. Is there a way to do this?</p>
  
  <pre><code>for j in range(10):
      dict[key_j] = j**2
  </code></pre>
  
  <p>Thank you</p>