script.py
board=[]
for i in board:
board.append([‘O’,‘O’,‘O’,‘O’,‘O’]
print board
script.py
board=[]
for i in board:
board.append([‘O’,‘O’,‘O’,‘O’,‘O’]
print board
The following code works fine:
board=[]
for i in range(2): #set some range
board.append(['O','O','O','O','O'])
print board[:] #prints the whole board
See here .