Battleship custom print


#1

board=[]

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

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

print_board(board)

Error: It looks like you function did not print out the correct response!

Can someone tell me which part went wrong?


#3

print " ".join(row) is wrong.

print row

print print_board(board)

def print_board(board):
    for i in board:
        print i
print  print_board(board)