(self, name)
| 89 | grade_list.append(grade) |
| 90 | |
| 91 | def average_grade(self, name): |
| 92 | by_subject = self._grades[name] |
| 93 | total, count = 0, 0 |
| 94 | for grades in by_subject.values(): |
| 95 | total += sum(grades) |
| 96 | count += len(grades) |
| 97 | return total / count |
| 98 | |
| 99 | |
| 100 | print("Example 4") |
nothing calls this directly
no outgoing calls
no test coverage detected