# Author: James Tam # Version: May 26, 2020 # * The user can specify the no. of rows & columns # Version: November, 2012 # Learning concepts: creating and displaying a variable sized 2D list noRows = int(input("Number rows: ")) noColumns = int(input("Number columns: ")) # Creating reference to grid aGrid = [] # Creating the grid data for r in range (0,noRows,1): aGrid.append ([]) for c in range (0,noColumns,1): aGrid[r].append("*") # Displaying the grid for r in range (0,noRows,1): for c in range (0,noColumns,1): print(aGrid[r][c], end="") print()