Task: Custom PrintCode: board = 
for _ in range(0, 5): board.append(['O'] * 5def print_board(board): for row in board: print row
Problem:File "python", line 5 def print_board(board): ^SyntaxError: invalid syntax
Apart from the obvious indentations what is the problem here? can someone help please?
look at the line above where you get the error message, especially pay attention to the parentheses.
thanks u legend that completely went over my head
you're welcome, also, if you want indent to show on the forum you need to use markup, there is a topic which explains this nicely:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.