Hello, I would like to execute a double for-loop in python. I use the python interface with ArcGIS (hence the gp. prefixes and weird functions). Here is my double-for loop attempt but I can't execute the code due to 'invalid syntax.' If I remove the bottom loop, the code runs fine. I have two Intro Python books that do not go into syntax for double for-loops. Any suggestions?
P.s Here's the porblem part of the code, the second half of this loop. However, when I preview the post, the indents don't show! Does the invalid syntax have to do with indenting?, if so, it would only involve the second half. The second for loop is indented from the first.
for tiffile in runlist:
for zone in zonelist
Output_raster = extrDIR + basename1 + string_zonenum
# Process: Extract by Mask...
gp.ExtractByMask_sa(InRaster, zone, Output_raster)
quantVARNAME.append(Output_raster) # Add to the list