For Georgia Tech CSE 6040 Notebook 1 Part 2 more_exercise, I got an error for on expected
Question:
For Georgia Tech CSE 6040 Notebook 1 Part 2 more_exercise, I got an error for on expected output. Please advise.
Exercise 3 (grade_dicts_test: 2 points). Complete the function build_grade_dicts, again taking grades as a parameter and returning new dictionary, grade_dicts, that maps names of students to dictionaries containing their scores. Each entry of this scores dictionary should be keyed on assignment name and hold the corresponding grade as an integer. For instance, grade_dicts['Thorny']['Exam 1'] == 100. You may find solutions to earlier exercises useful for completing this one. Feel free to use them!
def build_grade_dicts(grades):
grade_dicts = dict()
for i in grades[1:]:
grade_dicts[i[0]] = dict(zip(assignments, [int(j) for j in i[1:]]))
return grade_dicts
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill