Based off of the instructions for 5/19, here is the function I have defined (along with calling the function at the end and the preceding code from the previous exercises):
for i in range(5): board.append(["O"] * 5) def print_board(board_in): for row in board: print row print_board(board)
It passed. Now I’m wondering why the function it isn’t supposed to be:
for row in board_in: print row print_board(board)
I thought that ‘for’ statements within functions should be calling the same name of the argument you provided when defining the function (in this case, ‘for row in board_in’ instead of ‘for row in board’)?