Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __str__
Method
__str__
data_structures/heap/min_heap.py:10–11 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
8
self.val = val
9
10
def
__str__(self):
11
return
f
"{self.__class__.__name__}({self.name}, {self.val})"
12
13
def
__lt__(self, other):
14
return
self.val < other.val
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected