Step 5. board vs board_in


I see that user ‘superangeles’ alluded to this in closed topic “7.Hide…Why board instead of board_in?”

On step 5 “Custom Print” the solution provides:
def print_board(board_in):
for row in board:
print " ".join(row)

Here i notice the reference to list name - ‘board’,
where i believe it should reference board_in, the argument in the function as in:

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

Am i missing something or is this a mistake?


agree, we should use board_in (the function parameter)

we should not use board (global variable)

some of the proposed solutions are poor at best.


thanks for the quick reply! with your response in mind, I see that as i move through the exercise, the “starting code” that I’m asked to build on references the list “board” rather than the previously created “board_in”

I will plan to modify the starting code.

Thanks again!


please use board_in, having different variable names is better. Otherwise it might get confusing at some point


Im so very glad to read this disscusion :smiley:


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