MLCouden

Question on my Python Program?

Discussion created by MLCouden on May 3, 2012
Latest reply on May 3, 2012 by dkwiens
Is this program written correctly? How would I end it. Would it not be UPDATE Fields?

import arcpy
>>> import os.path
>>> os.path.basename ("C:\Users\Michelle\Desktop\GIS\FA_Urbans.shp")
'FA_Urbans.shp'
>>> arcpy.AddField_management ("FA_Urbans", "POPSQMI", "TEXT", "20") #POPSQMI is new field
<Result 'FA_Urbans'>
>>> arcpy.CalculateField_management("FA_Urbans", "POPSQMI", POPSQMI = "[SQMI] / [FID_1]","PYTHON"
...

Outcomes