fields = gp.listfields("[shapefile_location]") print fields
print [f.name for f in silverware]
>>> silverware = ["forks", "knives", "spoons"] >>> for utensil in silverware: ... print utensil ... forks knives spoons
silverware = ["forks", "knives", "spoons"]
print [f.name for f in fields]
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.