# Author: James Tam # Version: November, 2012 # Learning concepts: creating and displaying a 2D list # Creating reference to grid aGrid = [] # Creating the grid data for r in range (0,2,1): aGrid.append ([]) for c in range (0,3,1): aGrid[r].append(str(r+c)) # Displaying the grid for r in range (0,2,1): for c in range (0,3,1): print(aGrid[r][c], end="") print()