Question
Create a dictionary. Its keys consist of students' names and the values consist of the list of students' grades. Take both the student names and
Create a dictionary. Its keys consist of students' names and the values consist of the list of students' grades. Take both the student names and the student grades from the user.
Continue taking students' names until a user enters -1.
Each time, check whether a user enter the same name before. (In this class, everyone has a unique name.)
Take exactly three grades for each student.
Each grade should be a positive number including zero, please check each grade whether it meets this condition.
Calculate the average grade for each student and print it on the screen.
Check the dictionary below, which shows the grading scale, and determine the letter grade of each student based on it. Add the letter grades of the students at the end of the student's grade lists and print the final version of the dictionary.
grading_scale = {'A': '100-90', 'B': '89-70', 'C': '69-60', 'D': '59-50', 'F': '49-0'}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started