Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ report_grade
Method
report_grade
example_code/item_029.py:184–185 ·
view source on GitHub ↗
(self, score, weight)
Source
from the content-addressed store, hash-verified
182
self._grades = []
183
184
def
report_grade(self, score, weight):
185
self._grades.append(Grade(score, weight))
186
187
def
average_grade(self):
188
total, total_weight = 0, 0
Callers
1
item_029.py
File · 0.45
Calls
2
Grade
Class · 0.70
append
Method · 0.45
Tested by
no test coverage detected