title: python: Is it better to have one proper for loop or several oneliner for loops
body: <p>I have several lines of python code that look like this:</p>
  
  <pre><code>myVar1 = np.array([d['key1'] for d in D[0]['Log']])
  </code></pre>
  
  <p>All keys/values have the same length. </p>
  
  <p>is it better (performance/cpu/memory) to make a single loop and import them, or better several one liners? </p>
  
  <p>What do you think?</p>