def delete_thing(self, thing):
try:<EOL><INDENT>self.things.remove(thing)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>print(e)<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>" % (thing, thing.location))<EOL>print("<STR_LIT>" % [(thing, thing.location)<EOL>for thing in self.things])<EOL><DEDENT>if thing in self.agents:<EOL><INDENT>self.agents.remove(thing)<EOL><DEDENT>
Remove a thing from the environment.