<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_table(self, tablename):
 """ Deletes a table from the database. """

        self.tables = filter(lambda x: x.name != tablename, self.tables)