input: Write a function to convert a given SQL query string into an equivalent Python code that connects to a database, executes the query, and prints the results.
  
  def convert_sql_to_python(sql_query, db_name):
      import sqlite3
  
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
  
      cursor.execute(sql_query)
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()
  
  assert convert_sql_to_python("SELECT * FROM Movies WHERE category = 'horror'", 'movies.db')
  assert convert_sql_to_python("SELECT title FROM Movies WHERE year > 2000", 'movies.db')
  assert convert_sql_to_python("SELECT * FROM Actors WHERE name LIKE 'J%'", 'actors.db')
  assert convert_sql_to_python("SELECT count(*) FROM Users WHERE age < 18", 'users.db')
  assert convert_sql_to_python("SELECT username FROM Users WHERE last_login > '2023-01-01'", 'users.db')
output: def convert_sql_to_python(sql_query, db_name):
      import sqlite3
  
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
  
      cursor.execute(sql_query)
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()