This is my python code:
d = []
for x in range(5):
d.append(["O"] * 5)
print d
and output is:
[['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O']]
but I want the output as follows:
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O'] 
Eventually like this:
O O O O O
O O O O O
O O O O O
O O O O O
O O O O O

import numpy as npandd=np.zeros((5,5))