Custom print/print_board


#1



https://www.codecademy.com/courses/python-beginner-en-4XuFm/0/5?curriculum_id=4f89dab3d788890003000096


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?


#2

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


#3

thanks for the clarification