def get_table_list(cursor):
 cursor.execute('SHOW TABLES')
 return [row[0] for row in cursor.fetchall()]

def get_table_list ( cursor ) : cursor . execute ( 'SHOW TABLES' ) return [ row [ 0 ] for row in cursor . fetchall ( ) ]
returns a list of table names in the current database .