input: Write a function to implement an AI Tic-Tac-Toe game using Python. The function should initialize an empty board, handle player and computer turns, check for winning conditions, and display the board after each move. If the board is full and no player has won, the game should end in a draw. The board is represented as a list of size 10, where the index represents the position on the board.
  
  def playGame():
      board = ['-' for x in range(10)] 
      won = False
      turn = -1
      while not won: 
          if turn == -1: 
              # human turn   
              humanSpot = int(input("Enter your spot: "))
              if board[humanSpot] == '-': 
                  board[humanSpot] = 'X' 
              else: 
                  print("the spot is already filled!") 
                  continue
              turn *= -1
          
          if checkWin(board,'X'): 
              drawBoard(board) 
              print("You won!") 
              won = True
              break
          
          if turn == 1: 
              # computer turn  
              computerSpot = getComputerSpot(board,'O') 
              if computerSpot == None: 
                  drawBoard(board) 
                  print("The game is drawn!")
                  break
              else: 
                  board[computerSpot] = 'O' 
              turn *= -1
          
          drawBoard(board)
  
  assert playGame() is not None
  assert playGame()  # This assert will depend on user input and game execution, so it can't be pre-asserted for a specific outcome.
output: def playGame():
      board = ['-' for x in range(10)] 
      won = False
      turn = -1
      while not won: 
          if turn == -1: 
              humanSpot = int(input("Enter your spot: "))
              if board[humanSpot] == '-': 
                  board[humanSpot] = 'X' 
              else: 
                  print("the spot is already filled!") 
                  continue
              turn *= -1
          
          if checkWin(board,'X'): 
              drawBoard(board) 
              print("You won!") 
              won = True
              break
          
          if turn == 1: 
              computerSpot = getComputerSpot(board,'O') 
              if computerSpot == None: 
                  drawBoard(board) 
                  print("The game is drawn!")
                  break
              else: 
                  board[computerSpot] = 'O' 
              turn *= -1
          
          drawBoard(board)