Oct-16-2019, 03:52 PM
What you likely want is a list of lists. Nested for loops will do this nicely.
num_rows = int(input("Rows: ")) num_cols = int(input("Cols: ")) for row in range(num_rows): for col in range(num_cols): #Here is where you get the data for each row and col #new_data is the row you are creating from the input data new_data.append(whatever you get as a cell of input) #Once you assemble a row's worth of data, then table = table.append(new_data) print(table) #To access a single cell, access by row and column single_cell = table[row][col]Designed this as a format - it obviously does not work as written, but is meant to spur you in a direction