
SIZE = 8
initial_value = 0

# construct the grid:

grid = []

count = 0
while count < SIZE :
    grid = grid + [ [initial_value] * SIZE ]  # adds another row
    count = count + 1


grid[4][6] = 1

print "grid[4][6] is",  grid[4][6]

print


# print the whole grid, formatted as a table:

for row in grid :
    for element in row :
        print element,
    print

