<prompt> Ngola tšebetso e tsamaisang sebapali ka hara sehlopha sa mahlakore a mabeli holima boto ea papalinan  <response>: Instruction in English: Write a function that moves a character across a two-dimensional array on a game board . Response in English: Heres one way you could write a function that moves a character across a two-dimensional array on a game board:pythondef move_characterboard, current_position, direction: This function moves a character across a two-dimensional array on a game board. :param board: 2D list representing the game board :param current_position: Tuple representing the current position of the character on the board row, col :param direction: String representing the direction in which to move the character up, down, left, right :return: Tuple representing the new position of the character on the board row, col Get the current row and column of the character row, col current_position Determine the new position of the character based on the direction given if direction up: row - 1 elif direction down: row 1 elif direction left: col - 1 elif direction right: col 1 else: raise ValueErrorInvalid direction Make sure the new position is within the bounds of the board row max0, minrow, lenboard - 1 col max0, mincol, lenboard0 - 1 Update the characters position on the board boardrowcol C Return the new position of the character return row, colThis function takes as input a 2D list representing the game board, a tuple representing the current position of the character on the board, and a string representing the direction in which to move the character. The function calculates the new position of the character based on the direction given, making sure that the new position is within the bounds of the board. It updates the characters position on the board to the new position, and then returns the new position as a tuple. . Response in Sesotho: Mona ke tsela e ngoe eo u ka ngolang tšebetso e tsamaisang sebapali ka hara sehlopha sa mahlakore a mabeli holima letlapa la papali: python def move_characterboard, current_position, direction: Mosebetsi ona o tsamaisa sebapali ho ea ka mahlakoreng a mabeli. lihlopha holima board board holimo, tlase, ka ho le letšehali, ka ho le letona :khutlela: Tuple e emelang boemo bo bocha ba sebapali botong mola, kolo Fumana mola le kholumo ea hona joale ea mola oa litlhaku. , col current_position Etsa qeto ea boemo bo bocha ba sebapali ho latela tataiso e fanoeng haeba tataiso holimo: mola - 1 elif direction down: row 1 elif direction left: col - 1 elif direction right: col 1 e ngoe: phahamisa ValueErrorTaelo e sa nepahaleng Etsa bonnete ba hore boemo bo bocha bo ka hara meeli ea mola oa boto max0, minrow, len boto - 1 col max0, mincol, lenboard0 - 1 Nchafatsa boemo ba sebapali botongrowcol C Khutlisetsa e ncha boemo ba ho kgutla ha sebapali mola, kolo Tshebetso ena e nka e le ho kenya lenane la 2D le emelang boto ya papadi, tuple e emelang boemo ba hajwale ba motho e leng letlapeng, le kgwele e emelang moo ho tsamaiswang teng. sebopeho. Mosebetsi o lekanya boemo bo bocha ba sebopeho ho latela tataiso e fanoeng, ho etsa bonnete ba hore boemo bo bocha bo ka hara meeli ea boto. E nchafatsa boemo ba sebapali botong ho ea boemong bo bocha, ebe e khutlisetsa boemo bo bocha joalo ka tuple. 