Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing in

  Enroll Now

Tic Tac Toe with Python - Create the board structure to play on

Here we will define a function named new_board to create a new board on which the players can start playing.

INSTRUCTIONS
  • Define the function new_board as shown below. Here we are initializing the board with empty squares by appending with the EMPTY constant. It also returns a list called board.

    def <<your code goes here>>():
        board = []
        for square in range(NUM_SQUARES):
            board.append(<<your code goes here>>)
        return <<your code goes here>>
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...