input: 
  def select_horror_movies():
      """
      Re-write the given SQL query in Python to fetch all movies from the 'Movies' table where the category is 'horror'.
      
      >>> result = select_horror_movies()
      >>> for row in result:
      ...     print(row)
      ('Movie1', 'horror')
      ('Movie2', '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
  