Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ Gradebook
Class
Gradebook
example_code/item_029.py:212–217 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
210
211
print(
"Example 12"
)
212
class
Gradebook:
213
def
__init__(self):
214
self._students = defaultdict(Student)
215
216
def
get_student(self, name):
217
return
self._students[name]
218
219
220
print(
"Example 13"
)
Callers
1
item_029.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected