Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jwasham/practice-python
/ push
Method
push
linked_lists/linked_list.py:60–63 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
58
59
# Pushes an item on the front of the list.
60
def
push(self, value):
61
node = Node(value)
62
node.set_next(self.head_)
63
self.set_head(node)
64
65
def
append(self, value):
66
node = Node(value)
Callers
1
main
Function · 0.95
Calls
3
set_next
Method · 0.95
set_head
Method · 0.95
Node
Class · 0.90
Tested by
no test coverage detected