I'm new to python, and I'm doing a program for a tic tac toe game. In order to be able to manipulate the board later on, I've made it an array.
a=[["-","-","-"],["-","-","-"],["-","-","-"]]
def ttt(a):
for x in range (0,3):
print (a[x])
z=ttt(a)
print(z)
However, when it prints, it prints:
['-', '-', '-']
['-', '-', '-']
['-', '-', '-']
How can I get rid of the brackets, quotations, and commas so it just prints:
- - -
- - -
- - -
Thanks!