title: Convert columns of a list to rows in python
body: <p>I have a list </p>
  
  <pre><code>val = [1, 2, 3, 8, 5]
  wavg = [1.77,
          2.52,
          2.52,
          6.095,
          6.095 ]
  </code></pre>
  
  <p>I have to subtract  <code>1 - 1.77, 2 - 2.52, 3 - 2.52, 8 - 6.095, 5 - 6.095</code></p>
  
  <p>When I use <code>demeaned=[i - j for i,j in zip(val,wavg)]</code> I am getting wrong results because the dimensions are not equal. Can you please suggest how to convert wavg list to <code>[1.77, 2.52, 2.52, 6.095, 6.095]</code>.</p>