I want to define a dynamic two-dimensional array in python.
I don’t know how many rows my two-dimensional array will have at the start of my program. I would like to define new rows in this 2D array as needed.
As like this code:
array = [][100]
array[0][] = new array()
array[0][2] = 'hello'
array[1][] = new array()
array[1][3]= 'hello'
Do you mean something like the following?