Classes 2d lists in python
<p>I have a 2d list and a class to get users input and compare that object to what is stored.</p>

<p>For testing purposes it prints the coordinate and its equal to A but it ignores the if statement by not adding to the count.</p>

<p>Why is it ignoring the if statement</p>

<p>this is my current code</p>

<pre><code>count =0
print self.object[row][col]
if self.object[row][col] == "A":
    count +=1
print count
</code></pre>
