MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / __init__

Method __init__

Day01-15/Day09/shape.py:47–49  ·  view source on GitHub ↗
(self, width, height)

Source from the content-addressed store, hash-verified

45class Rect(Shape):
46
47 def __init__(self, width, height):
48 self._width = width
49 self._height = height
50
51 def perimeter(self):
52 return 2 * (self._width + self._height)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected