Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'Grade' is not defined #4

Closed
ghost opened this issue Oct 5, 2019 · 0 comments
Closed

NameError: name 'Grade' is not defined #4

ghost opened this issue Oct 5, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 5, 2019

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?

@ghost ghost closed this as completed Oct 7, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants