title: how does the result of num2=[0,100,20] get?
body: <p>I've met a question about list comprehension.</p>
  
  <pre><code>num1 = [5,10,15]
  num2 = [i**2 if i == 10 else i-5 if i &lt; 7 else i+5 for i in num1]
  </code></pre>
  
  <p>why <code>num2</code> is <code>num2 = [0,100,20]</code>?
  How does the result get?</p>