start = [0,0,0,0,0,0,0,0,0]
def print_board(turn, board):
print(turn + " turn" + "\n {}{}{}\n {}{}{}\n {}{}{}".format(board))
current_turn = "your"
print_board(current_turn, start)
The above stuff gives
Traceback (most recent call last):
File "so.py", line 5, in <module>
print_board(current_turn, start)
File "so.py", line 3, in print_board
print(turn + " turn" + "\n {}{}{}\n {}{}{}\n {}{}{}".format(x for x in board))
IndexError: tuple index out of range
I've got 9 values in my tuple or list and 9 curly brackets. Right?