return 'computer else return 'player def playagain() this function returns true if the player wants to play againotherwise it returns false print('do you want to play again(yes or no)' return input(lower(startswith(' ' def makemove(boardlettermove) board[moveletter def iswinner(bole) given board and player' letterthis function returns true if that player has won we use bo instead of board and le instead of letter so we don' have to type as much return ((bo[ =le and bo[ =le and bo[ =leor across the top (bo[ =le and bo[ =le and bo[ =leor across the middle (bo[ =le and bo[ =le and bo[ =leor across the bottom (bo[ =le and bo[ =le and bo[ =leor down the left side (bo[ =le and bo[ =le and bo[ =leor down the middle (bo[ =le and bo[ =le and bo[ =leor down the right side (bo[ =le and bo[ =le and bo[ =leor diagonal (bo[ =le and bo[ =le and bo[ =le)diagonal def getboardcopy(board) make duplicate of the board list and return it the duplicate dupeboard [ for in board dupeboard append( return dupeboard def isspacefree(boardmove) return true if the passed move is free on the passed board return board[move= def getplayermove(board) let the player type in their move move while move not in ' split(or not isspacefree(boardint(move)) print('what is your next move( - )'post questions to