I would like to be able to create a square list like this:
#[[ ],[ ],[ ]
# [ ],[ ],[ ]
# [ ],[ ],[ ]]
Using this code:
GRID_SIZE = 3
def placeMines():
L = []
for x in range(GRID_SIZE):
for y in range(GRID_SIZE):
L.append([])
print(L)
However, I want to be able to make it so that the list goes over to the next row when it reaches the rows number(3 in this case) of lists. Kind of like a \n
for strings.