input: Write a function to translate a given SQL query into Python code using SQLite. The function should accept a SQL query as a string and execute it against a SQLite database named 'movies.db'. The results should be fetched and printed row by row.
  assert translate_query("SELECT * FROM Movies WHERE category = 'horror'")==None
  assert translate_query("SELECT * FROM Movies WHERE category = 'action'")==None
  assert translate_query("SELECT * FROM Movies WHERE category = 'comedy'")==None
  assert translate_query("SELECT * FROM Movies WHERE category = 'drama'")==None
  assert translate_query("SELECT * FROM Movies WHERE category = 'sci-fi'")==None
output: def translate_query(query):
      import sqlite3
      conn = sqlite3.connect('movies.db')
      cursor = conn.cursor()
      cursor.execute(query)
      rows = cursor.fetchall()
      for row in rows:
          print(row)
      conn.close()