title: If without else - Python lists
body: <p>I know that the following code is valid:</p>
  
  <pre><code>list = [1 , 2 if 1==1 else 0, 3]
  </code></pre>
  
  <p>but how can I omit the list insertion if the if expression (1==1 in this case) returns false?</p>
  
  <p>I mean, I don't want to insert any value (including 'None', '[]') if the expression is not valid.</p>
  
  <p>I tried something like this</p>
  
  <pre><code>list = [1 , 2 if 1==1, 3]
  </code></pre>
  
  <p>but it doesn't work.</p>