(self)
| 185 | self._grades.append(Grade(score, weight)) |
| 186 | |
| 187 | def average_grade(self): |
| 188 | total, total_weight = 0, 0 |
| 189 | for grade in self._grades: |
| 190 | total += grade.score * grade.weight |
| 191 | total_weight += grade.weight |
| 192 | return total / total_weight |
| 193 | |
| 194 | |
| 195 | print("Example 11") |
no outgoing calls
no test coverage detected