kopia lustrzana https://github.com/animator/learn-python
rodzic
b2a1669105
commit
d2a25f16cc
|
@ -104,7 +104,7 @@ Lets complete the code and create a linked list.
|
||||||
|
|
||||||
Connect all the code.
|
Connect all the code.
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
llist = LinkedList()
|
llist = LinkedList()
|
||||||
|
|
||||||
# Insert words at the beginning
|
# Insert words at the beginning
|
||||||
|
@ -123,9 +123,8 @@ if __name__ == '__main__':
|
||||||
llist.printList()
|
llist.printList()
|
||||||
|
|
||||||
|
|
||||||
|
## output:
|
||||||
output:
|
1 2 3 9 4 10 7
|
||||||
1 2 3 9 4 10 7
|
|
||||||
|
|
||||||
|
|
||||||
### Deleting a node from the beginning of a linked list
|
### Deleting a node from the beginning of a linked list
|
||||||
|
|
Ładowanie…
Reference in New Issue