<prompt> Kujenga mchezo tic-tac-toe.  <response>: Sure! Here is some code that will allow you to play a game of tic-tac-toe in Python:BOARD 9def display_board: printn BOARD0 BOARD1 BOARD2 n---n BOARD3 BOARD4 BOARD5 n---n BOARD6 BOARD7 BOARD8 ndef make_move: marker X while is_game_overmarker is False and in BOARD: try: move intinputPlayer marker , please enter your next move 1-9: - 1 except ValueError: printPlease enter a valid move continue if BOARDmove ! : printnInvalid Move!n continue BOARDmove marker display_board if is_game_overmarker: printPlayer marker wins! break elif not in BOARD: printIts a tie! break marker O if marker X else Xdef is_game_overmarker: returnBOARD0 marker and BOARD1 marker and BOARD2 marker or BOARD3 marker and BOARD4 marker and BOARD5 marker or BOARD6 marker and BOARD7 marker and BOARD8 marker or BOARD0 marker and BOARD3 marker and BOARD6 marker or BOARD1 marker and BOARD4 marker and BOARD7 marker or BOARD2 marker and BOARD5 marker and BOARD8 marker or BOARD0 marker and BOARD4 marker and BOARD8 marker or BOARD 