How to index a Python list
<pre><code>list=[1,3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,1,0,1,3,0,3,0,3,1]
</code></pre>

<p>so now i want to know if the 5th object in this list is 3:</p>

<pre><code>if list.index(3)==5:
  print("yes")
else:
  print("no")
</code></pre>

<p>-> answer is "no"...
but it is, as you see.
So how can i solve it?</p>
