What am i doing wrong? 5/19 "custom print"


#1

??What am i doing wrong??


#2

the url is the same for everyone, it will check for the user to load that users code. So for me the url will open my code. Please copy paste your code to the forum


#3

ok, sorry, Here you go:

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

for grid in board:
    range(0,5)
    board.append('O' * 5)

def print_board (board) :
    for row in board:
        print(row)
        print "row"


print board
print_board(board)

#4

this code:

for grid in board:
    range(0,5)
    board.append('O' * 5)

what does it do? I would recommend to remove it.

then here:

def print_board (board) :
    for row in board:
        print(row)
        print "row"

adding a print statement to print a string will result in a incorrect output, remove the string.


#5

that didn't work. But i found out how to do it


#6