AnsweredAssumed Answered

Python Calculate Field Management String Variable Formatting

Question asked by GEOlson86 on Sep 24, 2014
Latest reply on Sep 24, 2014 by riyasdeen_b

I'm trying to calculate a field using the Python window, but I can't seem to figure out how to format the function properly.  What's the correct syntax for using a string variable as the expression?

 

arcpy.CalculateField_management(mapLyr2, "Jurisdicti", "'{0}'.format(tName)", "PYTHON")

 

I couldn't find an example that answered this question for me.  Thanks in advance.

Outcomes