title: Is there a Python convention to avoid long lines of code?
body: <p>Should I create variables just to avoid having long lines of code?  For example, in the code below the variable <code>stream_records</code> is only used once after it's set.</p>
  
  <pre><code>stream_records = stream.get_latest_records( num_records_to_correlate ).values('value')
  stream_values = [float(record['value']) for record in stream_records]
  </code></pre>
  
  <p>Should I have done this instead?</p>
  
  <pre><code>stream_values = [float(record['value']) for record in stream.get_latest_records( num_records_to_correlate ).values('value')]
  </code></pre>
  
  <p>I am trying to optimize for readability. I'd love some opinions on whether it's harder to have to remember lots of variable names or harder to read long lines of code.</p>
  
  <p>EDIT:</p>
  
  <p>Another interesting option to consider for readability (thanks to John Smith Optional):</p>
  
  <pre><code>stream_values = [
      float(record['value'])
      for record in stream.get_latest_records(
          num_records_to_correlate
      ).values('value')
  ]
  </code></pre>