input: Write a function to convert the given SQL query into a Python code using SQLite. The function should take the SQL query as a string input and return the Python code as a string.
  
  def sql_to_python(sql_query):
      python_code = """import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute(""" + repr(sql_query) + """)
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()"""
      return python_code
  
  assert sql_to_python("SELECT * FROM Movies WHERE category = 'horror'") == """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()"""
  
  assert sql_to_python("SELECT title FROM Movies WHERE year > 2000") == """import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute("SELECT title FROM Movies WHERE year > 2000")
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()"""
output: def sql_to_python(sql_query):
      python_code = """import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute(""" + repr(sql_query) + """)
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()"""
      return python_code