Closed ghost closed 5 years ago
In item 22, I noticed there is a Grade here but didn't get what it is.
def report_grade(self, score, weight): self._grades.append(Grade(score, weight))
Also, when i run the sample code, i got this error self._grades.append(Grade(score, weight)) NameError: name 'Grade' is not defined
Someone can help explaining?
In item 22, I noticed there is a Grade here but didn't get what it is.
Also, when i run the sample code, i got this error self._grades.append(Grade(score, weight)) NameError: name 'Grade' is not defined
Someone can help explaining?