input: Write a function to create an AI-driven Tic-Tac-Toe game in Python that allows human players to play against the computer. The function should include a method to draw the game board, check for a win, and determine the computer's move. The game should continue until either a player wins or the game is drawn. If there are no empty spots left and no player has won, the game should be declared a draw.
  
  
  assert playGame()  # Assumes the game runs until completion without errors
  
output: def playGame():
      def draw_board(board):
          print("\n".join([" ".join(row) for row in board]))
  
      def check_win(board, player):
          for row in board:
              if all([cell == player for cell in row]):
                  return True
          for col in range(3):
              if all([board[row][col] == player for row in range(3)]):
                  return True
          if all([board[i][i] == player for i in range(3)]) or all([board[i][2-i] == player for i in range(3)]):
              return True
          return False
  
      def get_computer_move(board):
          import random
          empty_spots = [(i, j) for i in range(3) for j in range(3) if board[i][j] == " "]
          return random.choice(empty_spots)
  
      board = [[" " for _ in range(3)] for _ in range(3)]
      current_player = "X"
  
      while True:
          draw_board(board)
          if current_player == "X":
              row, col = map(int, input("Enter row and column (0-2): ").split())
          else:
              row, col = get_computer_move(board)
  
          if board[row][col] == " ":
              board[row][col] = current_player
              if check_win(board, current_player):
                  draw_board(board)
                  print(f"Player {current_player} wins!")
                  return
              if all([cell != " " for row in board for cell in row]):
                  draw_board(board)
                  print("It's a draw!")
                  return
              current_player = "O" if current_player == "X" else "X"
          else:
              print("Spot already taken, try again.")