# # Create a random board for Boggle. # import pprint import random # # Create a blank board where every location is a space. # board = [] # Add 4 rows to the board. for row in range(4): # Add a new row to the board board.append([]) for col in range(4): # Add a new column to the current row board[row].append(" ") # Display the blank board. pprint.pprint(board) # # Populate every location with a random letter. # for row in range(4): for col in range(4): board[row][col] = random.choice("ABCDEFGHIJKLMNOPQRSTUVWXYZ") # Display the populated board. pprint.pprint(board)