input: Write a function that converts the given SQL query into a Python code snippet that performs the same operation. The function should accept the query as a string and return a string containing the equivalent Python code. Assume that the connection to the database is already established and stored in a variable named `conn`. Include the assertions to verify that the function works correctly.
  
  assert convert_sql_to_python("SELECT * FROM Movies WHERE category = 'horror'")=="cursor.execute(\"SELECT * FROM Movies WHERE category = 'horror'\"); result = cursor.fetchall(); for row in result: print(row);"
  assert convert_sql_to_python("SELECT title, year FROM Movies WHERE category = 'comedy'")=="cursor.execute(\"SELECT title, year FROM Movies WHERE category = 'comedy'\"); result = cursor.fetchall(); for row in result: print(row);"
  assert convert_sql_to_python("SELECT * FROM Actors")=="cursor.execute(\"SELECT * FROM Actors\"); result = cursor.fetchall(); for row in result: print(row);"
  assert convert_sql_to_python("SELECT name, age FROM Employees WHERE department = 'HR'")=="cursor.execute(\"SELECT name, age FROM Employees WHERE department = 'HR'\"); result = cursor.fetchall(); for row in result: print(row);"
output: def convert_sql_to_python(query):
      return f"cursor.execute(\"{query}\"); result = cursor.fetchall(); for row in result: print(row);"