#Jonathan Hudson #Student Number 12347890 #Date: 2020-08-26 #Lecture Practice # # Create a board for Boggle # from pprint import pprint from random import choice NUM_ROWS = 4 NUM_COLS = 4 # Create a new, empty board board = [] # Add the correct number of rows to the board for row in range(0, NUM_ROWS): # Append a new, empty, row to the board board.append([]) for col in range(0, NUM_COLS): # Add a new column to the current row board[row].append(" ") pprint(board) # Set each element in the board to a random letter for row in range(0, len(board)): for col in range(0, len(board[row])): board[row][col] = choice("ABCDEFGHIJKLMNOPQRSTUVWXYZ") # Print the board pprint(board)