input: Write a function to re-write the given SQL query in Python code. The function should connect to a SQLite database named 'movies.db', execute the SQL query to select all movies from the 'Movies' table where the category is 'horror', fetch the results, and print each row. Return None.
  
  assert re_write_sql_in_python()==None
  
  def re_write_sql_in_python():
      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()
      return None
output: def re_write_sql_in_python():
      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()
      return None