Printing Pretty doesn't work in IDLE


So I had success with the task at 13.6 and wanted to try it on my coding software.

Unfortunately, instead of printing the board it shows an invalid syntax error at line 8
right at the quotation mark of print " ".join(row)

Here's my code:

board = []

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

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

print print_board(board)


your coding software seems to use python3, in which print requires brackets:



Wow, thank you so much