Just a seggestion 😊 ... or two if board is going to be a list of numeric strings in order you can also just use range to create your board squars without the list object. that way you dont create two sparate lists each time (board and range). and fstring to help control spacing more. while we are t it lets throw in a new line variable 😁

For Example: for square in range(1, 10): # 1-9 nl = '\n' if square%3 == 0 else '' print(f'| {square} |{nl}', end='')

prints:

| 1 || 2 || 3 | | 4 || 5 || 6 | | 7 || 8 || 9 |

As for myself, I like to use Unicode in my console apps
I'll show an example of how I would implement a Board 😊

using the same 3x3 setup: top = "╔═╦═╦═╦═╦═╦═╗\n" between = "╠═╬═╬═╬═╬═╬═╣\n" bottom = "╚═╩═╩═╩═╩═╩═╝\n" board = top rows = 3 for n in range(rows): board += f'╠ {n*3+1} ╬ {n*3+2} ╬ {n*3+3} ╣\n' if n+1 != rows: board += between else: board += bottom print(board)

prints:

╔═╦═╦═╦═╦═╦═╗ ╠ 1 ╬ 2 ╬ 3 ╣ ╠═╬═╬═╬═╬═╬═╣ ╠ 4 ╬ 5 ╬ 6 ╣ ╠═╬═╬═╬═╬═╬═╣ ╠ 7 ╬ 8 ╬ 9 ╣ ╚═╩═╩═╩═╩═╩═╝

many ways to do it. just figured id share 😇