input: 
  def select_horror_movies_from_db():
      """
      Re-write the given SQL query in Python to select all movies with the category 'horror' from a SQLite database.
      >>> select_horror_movies_from_db()
      [(1, 'The Conjuring', 'horror'), (2, 'Insidious', 'horror')]
      """
  
output:     
      import sqlite3
      conn = sqlite3.connect('movies.db')
      cursor = conn.cursor()
      cursor.execute("SELECT * FROM movies WHERE category = 'horror'")
      horror_movies = cursor.fetchall()
      conn.close()
      return horror_movies
  