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

Method __init__

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

Source from the content-addressed store, hash-verified

50print("Example 1")
51class GameState:
52 def __init__(self):
53 self.level = 0
54 self.lives = 4
55
56
57print("Example 2")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected