does the function below properly use the .join function? I was attempting to make a board of all O's without the quote marks and commas. The output is the same as the input for board and doesn't remove the commas or quotation marks. I'm new to Python so I haven't yet grasped the proper methods for using these built in functions.
board = []
for x in range(5):
board.append(['O'] * 5)
def print_board(oChart):
for row in oChart:
#this line below is were the error occurs
" ".join(row)
print row
print_board(board)
When run the 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']
the output I intended to receive:
[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]