5/19 - IndentationError


Hello everyone. Lately I have been getting a lot of “IndentationError”, but when I check my code and compare it to the suggested solution, it is exactly the same. And it is happening again.

My code is the following:

board = []
for i in range(5):
  board.append(['O'] * 5)
def print_board (board_in):
	for row in board_in:
            print row
print print_board (board)

And I get:

  File "python", line 7
    print row
IndentationError: unindent does not match any outer indentation level

What am I doing wrong here?


Your code seems correct.


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