Question: Given a dictionary grade_counts = {A: 8, D: 3, C: 6, F: 2, B: 15} write a Python program that displays the following chart in

Given a dictionary

grade_counts = {"A": 8, "D": 3, "C": 6, "F": 2, "B": 15}

write a Python program that displays the following chart in which each row contains a key followed by the number of asterisks equal to the keys data value. The rows should be printed in key order, as shown below.

A: ********

B: ***************

C: ******

D: ***

F: **

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!