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

Method __init__

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

Source from the content-addressed store, hash-verified

50print("Example 1")
51class SimpleGradebook:
52 def __init__(self):
53 self._grades = {}
54
55 def add_student(self, name):
56 self._grades[name] = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected