board = []
for integer in range(1,6):
board.append("O")
print(str(board)*5)
That’s my code. My problem is that the output doesn’t come out as a 5×5 grid. Am I missing another for loop? (I know I could probably use list comprehensions as well).
thank you.
If you want a
5x5grid, you couldjointhe results …example:
To get the output you’re looking for, you can do