MCPcopy Index your code
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / Node

Class Node

Lists.py:1–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Node:
2 def __init__(self, initdata):
3 self.data = initdata
4 self.next = None
5
6 def getData(self):
7 return self.data
8
9 def getNext(self):
10 return self.next
11
12 def setData(self, newdata):
13 self.next = newdata
14
15 def setNext(self, nextNode):
16 self.next = nextNode
17
18
19temp = Node(93)

Callers 2

Lists.pyFile · 0.85
addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected