python 2d string array code example
Example 1: python append to 2d array
temp_list = [[], [], [], []]
temp_list[0].append("a1")
temp_list[1].append("a2")
temp_list[2].append("a3")
temp_list[3].append("a4")
Example 2: python print 2d array as table
for row in A:
for val in row:
print '{:4}'.format(val),
print