title: Can I combine these two list comprehensions?
body: <p>Here're two list comprehensions I'm working on:</p>
  <pre><code>basis_result = [[1 if value == '0' else -1 for value in sublist] for sublist in basis_result]
  miti_basis_result = [[1 if value == '0' else -1 for value in sublist] for sublist in miti_basis_result] 
  </code></pre>
  <p>They're only differed by the last part. I wonder how can I combine those list comprehensions? I was trying a shorter example: <code>aa,bb,cc = [i for i in [range(2),range(3),range(4)]]</code> but this method doesn't work. Thanks for the help!</p>