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?
Thank you,
AnnetteM
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:
basename0=os.path.basename(tiffile[0])
basename1=basename0[0:9]
InRaster=tiffile[0]
InRast.append(InRaster)
for zone in zonelist
basenamez=os.path.basename(zone[0])
string_zonenum=basenamez[3]
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