Using a declared variable to divide by number in PythonWin
Question: I declared my variables but as with other intro programming languages, I have
been able to do simple division once the variable is set. I can see Python is
a bit different. Here's what I have:

    
    
    import arcpy
    from arcpy import env
    
    #set workspace, allow overwrites
    arcpy.env.workspace = "C:/Users/../PoliceData.gdb"
    arcpy.env.overwriteOutput = True
    
    #create variables
    patrolZone = "C:/Users/.../PatrolZones"
    graffitiIncidents = "C:/Users/.../GraffitiIncidents"
    incidentField = "INCIDENTS"
    priorityField = "PRIORITY"
    area = "SHAPE_area"
    nameField = "NAME"
    areaSQMI = area/2589988.11
    

The SHAPE_area is a field within an attribute table. I realize I can't do this
because of the traceback error? I am just trying to change sq m to sq mi.


Answer: You are trying to intialize area with a **String** Try this :

    
    
    area = SHAPE_area
    

