title: Dictionary syntax error "can't assign to function call"
body: <p>I'm trying to find the maximum value of &quot;CrudeRate&quot; and its associated &quot;State_name&quot; using the following code:</p>
  <pre><code>import arcpy
  arcpy.env.workspace = &quot;C:\\&quot;
  
  shp = r&quot;C:\\USCancer2000.dbf&quot;
  rows = arcpy.SearchCursor(shp)
  CrudeRate = &quot;CrudeRate&quot;
  State_name = &quot;State_name&quot;
  
  out_dict = {}
  for row in rows:
      for C in CrudeRate:
          lst = []
          if row.CrudeRate == C:
              lst.append(row.CrudeRate)
          out_dict(C) = max(lst)
  del row,rows
  for CrudeRate in out_dict:
      print(CrudeRate, State_name)
  </code></pre>
  <p>but when I run it I get:</p>
  <pre><code>SyntaxError: Can't assign to function call
  </code></pre>
  <p>What is the problem with the code? How can I fix it?</p>