input: 
  def fetch_horror_movies():
      """Re-write the SQL query in Python to fetch all movies from the 'Movies' table that belong to the 'horror' category.
      >>> import sqlite3
      >>> conn = sqlite3.connect('movies.db')
      >>> cursor = conn.cursor()
      >>> cursor.execute("CREATE TABLE IF NOT EXISTS Movies (title TEXT, category TEXT)")
      >>> cursor.execute("INSERT INTO Movies (title, category) VALUES ('The Conjuring', 'horror'), ('Inception', 'sci-fi'), ('Halloween', 'horror')")
      >>> conn.commit()
      >>> result = fetch_horror_movies()
      >>> for row in result:
      ...     print(row)
      ('The Conjuring', 'horror')
      ('Halloween', 'horror')
      """
  
output:     conn = sqlite3.connect('movies.db')
      cursor = conn.cursor()
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      result = cursor.fetchall()
      conn.close()
      return result