Printing Pretty doesn't work in IDLE


#1



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)


#2

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

print("something")

#3

Wow, thank you so much