Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get 2d array output as matrix

matrix = [["A", "B"], ["C", "D"]]

print('
'.join(['	'.join([str(cell) for cell in row]) for row in matrix]))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #array #output #matrix
ADD COMMENT
Topic
Name
3+7 =