data structures and lists mainboard getrandomizedboard(revealedboxes generaterevealedboxesdata(falsethe getrandomizedboard(function returns data structure that represents the state of the board the generaterevealedboxesdata(function returns data structure that represents which boxes are coveredrespectively the return values of these functions are two dimensional ( dlistsor lists of lists list of lists of lists of values would be list another word for two or more dimensional lists is multidimensional list if we have list value stored in variable named spamwe could access value in that list with the square bracketssuch as spam[ to retrieve the third value in the list if the value at spam[ is itself listthen we could use another set of square brackets to retrieve value in that list this would look likefor examplespam[ ][ ]which would retrieve the fifth value in the list that is the third value in spam using the this notation of lists of lists makes it easy to map board to list value since the mainboard variable will store icons in itif we wanted to get the icon on the board at the position ( then we could just use the expression mainboard[ ][ since the icons themselves are stored as two-item tuples with the shape and colorthe complete data structure is list of list of two-item tuples whewhere' an small example say the board looked like thisthe corresponding data structure would bemainboard [[(donutblue)(linesblue)(squareorange)][(squaregreen)(donutblue)(diamondyellow)][(squaregreen)(ovalyellow)(squareorange)][(diamondyellow)(linesblue)(ovalyellow)](if your book is in black and whiteyou can see color version of the above picture at icon at the (xycoordinate on the board