human
get list of tables in database.
assistant
Here is a Python function to get list of tables in database

import sqlite3

def get_tables(conn):
  """Returns a list of all tables in the database."""
  cursor = conn.cursor()
  cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
  return cursor.fetchall()

# Enter the database connection
conn = sqlite3.connect(':memory:')

# Calling the function
print((get_tables(conn)))

#Example Output
# []

#Remember to inspect code for bugs.