I am having issues with loops and if statements in python. I keep getting an error on the last line. What am I doing wrong?
<SPAN class="keyword token">import</SPAN> arcpy
<SPAN class="keyword token">from</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>sa <SPAN class="keyword token">import</SPAN> <SPAN class="operator token">*</SPAN>
<SPAN class="keyword token">from</SPAN> arcpy <SPAN class="keyword token">import</SPAN> env
sorder<SPAN class="operator token">=</SPAN>r<SPAN class="string token">"C:\Temp\ARCGIS_PROJECT\Tutorial\Final\layers\streamorder"</SPAN>
desc<SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Describe<SPAN class="punctuation token">(</SPAN>sorder<SPAN class="punctuation token">)</SPAN>
xmin<SPAN class="operator token">=</SPAN> desc<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>XMin
ymin<SPAN class="operator token">=</SPAN>desc<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>YMin
xmax<SPAN class="operator token">=</SPAN> desc<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>XMax
ymax<SPAN class="operator token">=</SPAN> desc<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>YMax
count<SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN>
<SPAN class="keyword token">for</SPAN> columns <SPAN class="keyword token">in</SPAN> range <SPAN class="punctuation token">(</SPAN>xmin<SPAN class="punctuation token">,</SPAN> xmax<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
pointval<SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>GetCellValue_management<SPAN class="punctuation token">(</SPAN>sorder<SPAN class="punctuation token">,</SPAN><SPAN class="string token">"%s %s"</SPAN> <SPAN class="operator token">%</SPAN> <SPAN class="punctuation token">(</SPAN>columns<SPAN class="operator token">+</SPAN><SPAN class="operator token">+</SPAN><SPAN class="punctuation token">,</SPAN>ymin<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"1"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>pointval<SPAN class="operator token">==</SPAN> <SPAN class="number token">1</SPAN><SPAN class="punctuation token">,</SPAN> pointval<SPAN class="operator token">==</SPAN><SPAN class="number token">2</SPAN><SPAN class="punctuation token">,</SPAN> pointval<SPAN class="operator token">==</SPAN><SPAN class="number token">3</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
count<SPAN class="operator token">+</SPAN><SPAN class="operator token">+</SPAN>
<SPAN class="keyword token">print</SPAN> <SPAN class="string token">"count= %s"</SPAN> <SPAN class="operator token">%</SPAN> <SPAN class="punctuation token">(</SPAN>count<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>