<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def truncate_table(self, tablename):
 """ Use 'TRUNCATE TABLE' to truncate the given table """

        self.cursor.execute('TRUNCATE TABLE %s' %tablename)
        self.db.commit()