Question: (PYTHON) I have a dictionary created by user input, and I need to take the values from that dictionary and arrange them in a list

(PYTHON) I have a dictionary created by user input, and I need to take the values from that dictionary and arrange them in a list for a grading system. It sorts them based off their integer value, assigning each value to a letter grade. The format is like this:

A: (value)

B: (value)

C: (value)

D: (value)

F: (value)

This is what I have now:

class_size=int(input("Please, enter the class size: ")) clas={} for x in range(class_size): student_name = input("Please, enter the student name: ") student_grade = int(input("Please, enter the student grade: ")) clas[student_name] = student_grade

print('Report of Grades')

How do I format this list using the dictionary input the way the program wants? student_grade are the values I need to list.

Each letter grade is on a 10 point scale, so

A = 90 - 100

B = 80 - 90

C = 70 - 80

D = 60 - 70

F - 60 and below

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!