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

Method __init__

example_code/item_029.py:112–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110print("Example 5")
111class WeightedGradebook:
112 def __init__(self):
113 self._grades = {}
114
115 def add_student(self, name):
116 self._grades[name] = defaultdict(list)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected