1.
Define the draw_histogram() function which is passed a Pythondictionary as a parameter. The keys of the dictionary are singleletters and the corresponding values are integers, e.g., {‘b’: 5,’a’: 6, ‘c’: 3}. For each key:value pair in the dictionary thefunction prints the key, followed by “: “, followed by a series ofstars. The number of stars printed is given by the valuecorresponding to the key. The keys are printed in alphabeticalorder. Note that the key is not printed if the corresponding valueis a number less than 1.
For example, the following code:
print(“1.”)
draw_histogram({‘a’: 2, ‘c’: 7, ‘b’: 5})
print()
print(“2.”)
draw_histogram({‘a’: 0, ‘c’: 5, ‘b’: 7,
PayPal Gateway not configured
PayPal Gateway not configured