title: 'str' object has no attribute 'remove'
body: <p>I want to remove 362968 from below list- </p>
  
  <p>list=[362976,362974,362971,362968,362969]</p>
  
  <p>code-</p>
  
  <pre><code>list.remove(362968)
  </code></pre>
  
  <p>I am getting error: 'str' object has no attribute 'remove'</p>
  
  <p>Actual code - </p>
  
  <pre><code>def matchmaker():
  exportersfree = exporters[:]
  engaged  = {}
  exprefers2 = copy.deepcopy(exprefers)
  imprefers2 = copy.deepcopy(imprefers)
  while exportersfree:
      exporter = exportersfree.pop(0)
      exporterslist = exprefers2[exporter]
      importer = exporterslist.pop(0)
      match = engaged.get(importer)
      if not match:
          # impo's free
          engaged[importer] = exporter #both parties are added to the engaged list
          importerslist = imprefers2[importer]
          for z in range (importerslist.index(exporter)-1):
                      importerslist.index(exporter)
                      exprefers2[importerslist[z]].remove(importer)
          del importerslist[0:(importerslist.index(exporter)-1)]
  
      else
              engaged[importer] = exporter
              if exprefers2[match]:
                  # Ex has more importers to try
                  exportersfree.append(match)
  
  return engaged
  </code></pre>