when you run dicemath pythe output will look like thisdice mathby al sweigart al@inventwithpython com add up the sides of all the dice displayed on the screen you have seconds to answer as many as possible you get points for each correct answer and lose point for each incorrect answer press enter to begin + ++ +enter the sum --snip-+ ++ +how it works the dice on the screen are represented by dictionary stored in the canvas variable in pythontuples are similar to listsbut their contents cannot be changed the keys to this dictionary are (xytuples marking the position of die' top left cornerwhile the values are one of the "dice tuplesin all_dice you can see in lines to that each dice tuple contains list of stringswhich graphically represents one possible die faceand an integer of how many pips are on the die face the program uses this information to display the dice and calculate their sum total lines to render the data in the canvas dictionary on the screen in manner similar to how project "conway' game of life,renders cells on the screen """dice mathby al sweigart al@inventwithpython com flash card addition game where you sum the total on random dice rolls view this code at tagslargeartisticgamemath"" import randomtime set up the constants dice_width dice_height canvas_width project #