Custom Print: Not printing?


#1



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


I think the code is not printing properly. I only receive "None" when the function is called


To print, row by row, the board


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

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


#2

Python is whitespace sensitive.

Right there, you have an indent which is causing it to not work. Just get rid of that and it will work fine.


#3

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