Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __iter__
Method
__iter__
data_structures/binary_tree/basic_binary_tree.py:35–36 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
33
root: Node
34
35
def
__iter__(self) -> Iterator[int]:
36
return
iter(self.root)
37
38
def
__len__(self) -> int:
39
return
len(self.root)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected