Custom Print


#1

board = []
for x in range(0,5):
board.append (["O"] * 5 )

def print_board(board):
for row in board:
print (["0"] * 5)

what is wrong with this???
the error I got was..
It looks like you function didn't print out the correct response!


#2

Not quite....You have already established what to the print in each row. Instead you want to print the row on that line, so the line I pointed out should be this:

 print row

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.