Why is my Code Being Rejected?


#1

Can someone explain to me why my code is being rejected for this exercise? The code is below. Thanks.

board =[]

for x in range(6):
  board.append(["O"]*5)
  
def print_board(board_in):
  for row in board:
    print " ".join(row)
    

print_board(board)

How does the join( ) method work?
#2

here:

for row in board:

you loop over board, why?

also:

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

this will generate a 6 by 5 board. range(6) produces: [0, 1, 2, 3, 4, 5], so 6 iteration are made, not 5