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
Get step-by-step solutions from verified subject matter experts
