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

0

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)
Posted by: Guest on January-30-2020

Code answers related to "pass in 2 numbers, A and B. You should create a list with A rows and B columns, then populate each cell"

Python Answers by Framework

Browse Popular Code Answers by Language