HF RL Explorer

Task: Get Column Names from SQLite Database Table

Task: Get Column Names from SQLite Database Table: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that retrieves a list of column names from a specified table in an SQLite database. The script should return only the column names as a clean Python list (not tuples with extra…

The task

Write a Python script that retrieves a list of column names from a specified table in an SQLite database. The script should return only the column names as a clean Python list (not tuples with extra metadata), and demonstrate how to find the index of a specific column name within that list.

Part of PrimeIntellect/Terminal-Lego-15k.