MySQL.
sql.format(database_name,) cursor.execute(sql) connection.commit() Let's execute function create_table to ensure that table person gets created. >>> from inserts import create_table >>> create_table('frodo') This should have created table person. Insert rows Let's add function insert_rows in module