Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __repr__
Method
__repr__
geometry/geometry.py:131–132 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
129
self.radius = radius
130
131
def
__repr__(self) -> str:
132
return
f
"Circle(radius={self.radius})"
133
134
@property
135
def
diameter(self) -> float:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected