hash tables listing continued print the histogram chart printchartgradehist determines the letter grade for the given numeric value def lettergradegrade )if grade > return 'aelif grade > return 'belif grade > return 'celif grade > return 'delse return 'fprints the histogram as horizontal bar chart def printchartgradehist )printgrade distributionprint the body of the chart lettergrades ' '' '' '' ''ffor letter in lettergrades print|printletter +"end "freq gradehist getcountletter print'*freq print the -axis print|print+----+----+----+----+----+----+----+----print calls the main routine main(the buildhist py program consists of three functions the main(function drives the programwhich extracts the numeric grades and builds an instance of the histogram adt it initializes the histogram to contain the five letter grades as its categories the lettergrade(function is helper functionwhich simply returns the letter grade for the given numeric value the printchart(function prints the text-based histogram using the frequency counts computed in the main routine assuming the following grades are extracted from the text file the buildhist py program would produce the following text-based histogram