If statement with modulo operator
<p>I tried this -</p>

<pre><code>x=[2,3,4,7,9]
count=0
for i in x:
  if i%2:
    count=count+1
print count
</code></pre>

<p>why the count is <code>3</code> instead of <code>2</code>, as <code>i%2</code> is satusfiying only for "2 and 4"?</p>