Ich konnte nicht während des Unterrichts pushen. Dieser Commit enthält die Änderungen, von Nextcloud kopiert
18 lines
262 B
Python
18 lines
262 B
Python
from linked_list import LinkedList
|
|
|
|
list = LinkedList()
|
|
list.push(123)
|
|
list.push(456)
|
|
list.push(789)
|
|
list.print()
|
|
|
|
print(list.pop())
|
|
print(list.pop())
|
|
print(list.pop())
|
|
|
|
|
|
# node3 = Node(333)
|
|
# node2.next = node3
|
|
|
|
# print(node1.data, node1.next.data, node2.next)
|