Consider the following script to print the coordinates of the vertices of the features of a feature class.
import arcpy
from arcpy import env
env.workspace = "C:/Data"
fc = "features.shp"
cursor = arcpy.da.SearchCursor(fc, ["OID@", "SHAPE@"])
for row in cursor:
print ("Feature {0}: ".format(row[0]))
partnum = 0
for part in row[1]:
print ("Part {0}:".format(partnum))
for point in part:
print ("{0}, {1}".format(point.X, point.Y))
partnum += 1
Line 10 of the code reads 'for part in row[1]:'. Why does the code use row[1] instead of just row?
Select one of the following: