Custom print/print_board


board = []
for e in range(5):
    board.append(['O'] * 5)

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

if i change the last line to just print_board(row) it prints out the same thing as above. Why does the print_board(row) without the print in front prints out?


Because the codecademy console always print out the last thing. It is just a thing in the codecademy console.


thanks for the clarification