title: Using modulo python
body: <p>I'm trying to figure out why the list comprehension below returns what it returns. I get a little confuse with the modulo indicator.</p>
  
  <p>Example: The output below i cant understand the output.</p>
  
  <pre><code>print([i for i in range(11) if i%2])
  </code></pre>
  
  <p>Output:
   [1, 3, 5, 7, 9]</p>
  
  <p>However in the example below I perfectly understand the return of even numbers.</p>
  
  <pre><code>print([i for i in range(11) if i%2==0])
  </code></pre>
  
  <p>[0, 2, 4, 6, 8, 10]</p>