title: Populating a dictionary using for loops (python)
body: <p>I'm trying to create a dictionary using for loops. Here is my code:</p>
  
  <pre><code>dicts = {}
  keys = range(4)
  values = ["Hi", "I", "am", "John"]
  for i in keys:
      for x in values:
          dicts[i] = x
  print(dicts)
  </code></pre>
  
  <p>This outputs:</p>
  
  <pre><code>{0: 'John', 1: 'John', 2: 'John', 3: 'John'}
  </code></pre>
  
  <p>Why?</p>
  
  <p>I was planning on making it output:</p>
  
  <pre><code>{0: 'Hi', 1: 'I', 2: 'am', 3: 'John'}
  </code></pre>
  
  <p>Why doesn't it output that way and how do we make it output correctly?</p>