<prompt> Theha lenaneo la komporo ho bapala papali ea tic-tac-toenan  <response>: Instruction in English: Create a computer program to play a game of tic-tac-toe . Response in English: Here is one possible implementation of a tic-tac-toe game in Python:pythonimport randomdef print_boardboard: Function to print the Tic-tac-toe board for i in range3: for j in range3: printboardij, end printdef check_winboard: Function to check if the game has ended in a win check rows for i in range3: if boardi0 boardi1 boardi2 and boardi0 ! : return True check columns for i in range3: if board0i board1i board2i and board0i ! : return True check diagonals if board00 board11 board22 and board00 ! : return True if board02 board11 board20 and board02 ! : return True return Falsedef make_moveboard, player: Function to make a move for the player if player human: x intinputEnter x coordinate: y intinputEnter y coordinate: while boardxy ! : printInvalid move! Try again. x intinputEnter x coordinate: y intinputEnter y coordinate: boardxy X else: x, y random.randint0, 2, random.randint0, 2 while boardxy ! : x, y random.randint0, 2, random.randint0, 2 boardxy Odef play_game: Function to play the Tic-tac-toe game board for i in range3 for j in range3 print_boardboard while True: printHumans turn make_moveboard, human print_boardboard . Response in Sesotho: Mona ke tsebetsong e le ngoe e ka bang teng ea papali ea tic-tac-toe ho Python: python import random def print_boardboard: Mosebetsi oa ho hatisa boto ea Tic-tac-toe bakeng sa i ka mefuta 3 : bakeng sa j boemong 3: printboardij, end print def check_winboard: Mosebetsi oa ho hlahloba hore na papali e felile ka katleho hlahloba mela bakeng sa i moleng3: haeba boardi0 boardi1 boardi2 le boardi0 ! : khutlisetsa Nete likholomo tsa tlhahlobo bakeng sa i moleng3: haeba board0i board1i board2i le board0i ! : khutlisa Nete hlahloba diagonals haeba board00 board11 board22 le board00 ! : khutlisetsa Nete haeba boto02 boto11 boto20 le boto02 ! : khutlisetsa nete khutlisetso False def make_moveboard, player : Mosebetsi oa ho etsa motsamao bakeng sa sebapali haeba sebapali motho: x intinputKena x coordinate: y intinputKena y coordinate: ha boardxy ! : hatisaTsamaiso e fosahetseng! Leka hape. x intinputEnter x coordinate: y intinputKena y coordinate: boardxy X e ngoe: x, y random.randint0, 2, random.randint0, 2 ha boardxy ! : x, y random.randint0, 2, random.randint0, 2 boardxy O def play_game: Mosebetsi oa ho bapala papali ea Tic-tac-toe board for i in range3 for j in range3 print_boardboard while True: printHumans turn make_moveboard, human print_boardboard 