Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #pass #A #You #create #list #A #rows #B #populate #cell
ADD COMMENT
Topic
Name
3+1 =