You are given a tree with N nodes (numbered 1 through N). For each valid i, node i has a value Ai. code example

Example: pass in 2 numbers, A and B. You should create a list with A rows and B columns, then populate each cell

Pass in 2 numbers, A and B. You should create a list with A rows and B columns, then populate each cell
A = 2
B = 3
output = []
row = A
column = B
for num in range(0, row):
  output.append([])
  for i in range(0, column):
    output[num].append('R' + str(num) + ('C' + str(i)))
print(output)