title: Error "'type' object has no attribute '__getitem__'" when iterating over list["a","b","c"]
body: <p>I'm new to Python and I keep getting this error:</p>
  
  <pre><code>TypeError: 'type' object has no attribute '__getitem__'
  </code></pre>
  
  <p>when I try to run this code:</p>
  
  <pre><code>import arcpy,os
  from arcpy import env
  from arcpy.sa import*
  env.workspace="F:\U of M\good good study\python\fl\fl"
  inFeatures="foodpts.shp"
  lst=list["ram","bak","cat","fas","far","fmk","sup","gro","ebt"]
  for item in lst:
      populationField=item
      cellsize=100
      searchRadius=805
      arcpy.CheckOutExtension("Spatial")    
      outKernelDensity=KernelDensity(inFeatures,populationField,cellsize,searchRadius,  "SQUARE_KILOMETERS")
      outKernelDensity.save("F:\U of M\good good study\python\fl\fl\kernal")
  </code></pre>
  
  <p>What am I doing wrong?</p>