input: 
  def select_horror_movies_from_db():
      """Re-write the following SQL query in Python.
      SQL Query: SELECT * FROM Movies WHERE category = 'horror';
      >>> select_horror_movies_from_db()
      (('The Conjuring', 'horror'), ('Insidious', 'horror'), ...)
      """
      import sqlite3
      
      conn = sqlite3.connect('movies.db')
      cursor = conn.cursor()
      
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      
      result = cursor.fetchall()
      conn.close()
      
      return result
  
output:     import sqlite3
      
      conn = sqlite3.connect('movies.db')
      cursor = conn.cursor()
      
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      
      result = cursor.fetchall()
      conn.close()
      
      return result