input: Write a function to convert the given SQL query into a Python script using SQLite. The function should take a database connection and a category as input, execute the SQL query to retrieve all movies from the Movies table where the category matches the input category, and print each row of the result.
  assert convert_sql_to_python(sqlite3.connect('movies.db'), 'horror')  # Output should be the rows of horror movies.
  assert convert_sql_to_python(sqlite3.connect('movies.db'), 'comedy')   # Output should be the rows of comedy movies.
  assert convert_sql_to_python(sqlite3.connect('movies.db'), 'action')   # Output should be the rows of action movies.
output: def convert_sql_to_python(conn, category):
      cursor = conn.cursor()
      cursor.execute("SELECT * FROM Movies WHERE category = ?", (category,))
      rows = cursor.fetchall()
      for row in rows:
          print(row)