6 : Something is wrong with my code. Whats off about it?


#1

So I wrote my code and codecademy deemed it as correct but when I print out my code i get this:

O O O O O
O O O O O
O O O O O
O O O O O
O O O O O
None
None

There are two "None"s at the end and I don't know what seems to be the problem. I tried looking around and it doesn't seem like people have the None at the end. Any of you guys have an idea? Here's what I wrote:

board = []

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

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

print print_board(board)


#2

delete the print and you will only get one None

About the second None, that just means, that your function doesn't return anything :smiley:


#3

Ohhh I see! Thanks a lot.