title: Create array of json objects from for loops
body: <p>Im attempting to extract values from an html and then convert them into a json array, and so far I have been able to get what I want, but only as separate strings:</p>
  
  <p>I did two for loops:</p>
  
  <pre><code>for line in games_html.findAll('div', class_="product_score"):
    score= ("{'Score': %s}" % line.getText(strip=True))
    print score
  
  for line in games_html.findAll('a'):
    title= ("{'Title': '%s'}" % line.getText(strip=True))
    print title
  </code></pre>
  
  <p>Which produce these two outputs:</p>
  
  <pre><code>{'Title': 'Uncanny Valley'}
  {'Title': 'Subject 13'}
  {'Title': '2Dark'}
  {'Title': 'Lethal VR'}
  {'Title': 'Earthlock: Festival of Magic'}
  {'Title': 'Knee Deep'}
  {'Title': 'VR Ping Pong'}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{'Score': 73}
  {'Score': 73}
  {'Score': 72}
  {'Score': 72}
  {'Score': 72}
  {'Score': 71}
  {'Score': 71}
  </code></pre>
  
  <p>(they are longer but you can get an idea with this...)</p>
  
  <p>How can I use python to create a json array out of these that would look like:</p>
  
  <pre><code>[{'Title': 'Uncanny Valley', 'Score': 73}, {....}]
  </code></pre>
  
  <p>I am gonna use the resulting array to do other things afterwards....</p>
  
  <p>Do I need to store the items from the loop into lists and then merge them? Could you please illustrate an example given my scenario?</p>
  
  <p>Help is much appreciated, this is a really cool learning experience for me as I have only used bash until now. Python looks way sexier.</p>