list - 'str' object has no attribute 'remove' - Stack Overflow
stackoverflow.com › questions › 31215546Jul 04, 2015 · code-. list.remove (362968) I am getting error: 'str' object has no attribute 'remove'. Actual 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 ...