input: 
  def select_horror_movies():
      """
      Re-write the given SQL query in Python to select all movies from the 'Movies' table
      where the category is 'horror'. This function connects to the 'movies.db' SQLite database, 
      executes the query, fetches all results, and prints each row.
      >>> result = select_horror_movies()
      ('Annabelle', 'horror', 2014)
      ('The Shining', 'horror', 1980)
      """
      import sqlite3
  
      conn = sqlite3.connect('movies.db') 
      cursor = conn.cursor()
  
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()
  
output:     return result