how to write jsonfile with one single value and other one array code example
Example 1: define two variables in one line javascript
var [a,b,c,d] = [0,1,2,3]
Example 2: 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)