I\'m dong a Node exercise on python today. I seem to have accomplished a part of it, but it is not a complete success.
class Node: def __init__(self, ca
Instead of calling str() on the node, you should access it's cargo:
str()
cargo
. . . while node: nodelist.append(node.cargo) node = node.next . . .
def printLinkedList(self): node = self.head while node != None: print(node.getData()) node = node.getNext()