Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
Here we will define a function named new_board
to create a new board on which the players can start playing.
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>>
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...