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

Method interior_angles

example_code/item_062.py:88–89  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

86
87 @classmethod
88 def interior_angles(cls):
89 return (cls.sides - 2) * 180
90
91class Triangle(Polygon):
92 sides = 3

Callers 1

item_062.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected