input: 
  def select_movies_by_category(category: str) -> list:
      """
      Given a category, this function connects to a SQLite database named 'movies.db',
      performs a SELECT query to retrieve all movies in the specified category, and prints them.
      >>> select_movies_by_category('horror')
      [('Movie1', 'horror'), ('Movie2', 'horror')]
      """
      import sqlite3
  
      conn = sqlite3.connect('movies.db') 
      cursor = conn.cursor()
  
      cursor.execute(f"SELECT * FROM Movies WHERE category = '{category}'")
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()
      return result
  
output:     import sqlite3
  
      conn = sqlite3.connect('movies.db') 
      cursor = conn.cursor()
  
      cursor.execute(f"SELECT * FROM Movies WHERE category = '{category}'")
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()
      return result