input: 
  def query_movies_by_category(db_name: str, category: str):
      """
      Execute an SQL query to fetch movies from a specified category and print them.
      >>> query_movies_by_category('movies.db', 'horror')
      (1, 'The Exorcist', 'horror', 1973)
      (2, 'Halloween', 'horror', 1978)
      """
      import sqlite3
      conn = sqlite3.connect(db_name)
      cursor = conn.cursor()
      cursor.execute(f"SELECT * FROM Movies WHERE category = '{category}'")
      result = cursor.fetchall()
      for row in result:
          print(row)
      conn.close()
  
output:     import sqlite3
      conn = sqlite3.connect(db_name)
      cursor = conn.cursor()
      cursor.execute(f"SELECT * FROM Movies WHERE category = '{category}'")
      result = cursor.fetchall()
      for row in result:
          print(row)
      conn.close()