increase the number of simulated rolls to to analyze the rollswe create the empty list frequencies to store the number of times each value is rolled we loop through the possible values ( through in this caseat vcount how many times each number appears in results and then append this value to the frequencies list we then print this list before making visualization[ these results look reasonablewe see six frequenciesone for each possible number when you roll and we see that no frequency is significantly higher than any other now let' visualize these results making histogram with list of frequencieswe can make histogram of the results histogram is bar chart showing how often certain results occur here' the code to create the histogramdie_visual py import pygal --snip-analyze the results frequencies [for value in range( die num_sides+ )frequency results count(valuefrequencies append(frequencyvisualize the results hist pygal bar(hist title "results of rolling one times hist x_labels [' '' '' '' '' '' 'hist x_title "resulthist y_title "frequency of resultw hist add(' 'frequencieshist render_to_file('die_visual svg'we make bar chart by creating an instance of pygal bar()which we store in hist we then set the title attribute of hist (just string we use to label the histogram)use the possible results of rolling as the labels for the -axis vand add title for each of the axes we use add(to add series of values to the chart at (passing it label for the set of values to be added and list of the values to appear on the chartfinallywe render the chart to an svg filewhich expects filename with the svg extension the simplest way to look at the resulting histogram is in web browser open new tab in any web browser and then open the file die_visual svg (in the folder where you saved die_visual pyyou should see chart like the