input: Write a function to convert the given SQL query into a Python function using SQLite3. The function should take no arguments, establish a connection to the 'movies.db' database, execute the SQL query to select all movies in the 'horror' category, and print each row of the result.
  import sqlite3
  
  def select_horror_movies():
      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()
  
  assert select_horror_movies() == None
output: def select_horror_movies():
      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()