Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __repr__
Method
__repr__
maths/pythagoras.py:12–13 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
10
self.z = z
11
12
def
__repr__(self) -> str:
13
return
f
"Point({self.x}, {self.y}, {self.z})"
14
15
16
def
distance(a: Point, b: Point) -> float:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected