LarryAdgate

Print results downloaded to new table and field

Discussion created by LarryAdgate on Dec 16, 2013
Latest reply on Dec 16, 2013 by LarryAdgate
#If someone could be so kind as to show me an example of how to have the print results below downloaded into a new table and field, I would be forever greatful. Thank You  


import arcpy
import sets

a = set(r[0] for r in arcpy.da.SearchCursor("Primary", "Data1"))
b = set(r[0] for r in arcpy.da.SearchCursor("Set1", "Data1"))
c = set(r[0] for r in arcpy.da.SearchCursor("Set2", "Data1"))

print "Missing From others: {}".format(", ".join(sorted(a-b-c)))

Outcomes