I'm new to Python and I'm trying to create a simple tictactoe game to learn the syntax and keep getting an error TypeError: object of type 'int' has no len() when running the following:
board = [
['|', '|', '|' ],
['|', '|', '|'],
['|', '|', '|']
]
def tictactoe ():
print('\n'.join([''.join(['{:4}'.format(item) for item in row]) for row in board]))
print(len(board))
for i in range(0,len(board)):
for j in range(0,len(i)):
print(i,j)