MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / add_student

Method add_student

example_code/item_029.py:115–116  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

113 self._grades = {}
114
115 def add_student(self, name):
116 self._grades[name] = defaultdict(list)
117
118 def report_grade(self, name, subject, score, weight):
119 by_subject = self._grades[name]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected