MCPcopy Create free account
hub / github.com/geekcomputers/Python / calculate_perimeter

Method calculate_perimeter

area_of_square_app.py:84–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 # Prettifying the output.
83
84 def calculate_perimeter(self):
85 return 4 * self.side
86
87 def calculate_perimeter_prettify(self):
88 return f"The perimeter of the square is {self.calculate_perimeter()}."

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected