Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ report_grade
Method
report_grade
example_code/item_029.py:58–59 ·
view source on GitHub ↗
(self, name, score)
Source
from the content-addressed store, hash-verified
56
self._grades[name] = []
57
58
def
report_grade(self, name, score):
59
self._grades[name].append(score)
60
61
def
average_grade(self, name):
62
grades = self._grades[name]
Callers
nothing calls this directly
Calls
1
append
Method · 0.45
Tested by
no test coverage detected