input: 
  def execute_sql_query(db_name: str, table_name: str, category: str):
      """ Execute a SQL query to select all rows from a specified table where the category matches the given value.
      >>> execute_sql_query('movies.db', 'Movies', 'horror')
      [('movie1', 'horror'), ('movie2', 'horror'), ...]
      """
      import sqlite3
  
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
  
      cursor.execute(f"SELECT * FROM {table_name} WHERE category = ?", (category,))
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()
      return result
  
output:     import sqlite3
  
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
  
      cursor.execute(f"SELECT * FROM {table_name} WHERE category = ?", (category,))
  
      result = cursor.fetchall()
      conn.close()
      return result