Human: What is a good Python function to sqlite table names in database. Assistant: 
Here is a Python function to create sqlite table names in database

import sqlite3

def get_table_names(db):
    """Return the table names in the given database."""
    cursor = db.cursor()
    cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
    return cursor.fetchall()

# Enter the database name
db_name ="orange automobil"

# Calling the function
table_names = get_table_names(sqlite3.connect(db_name))

#Remember to inspect code for bugs.