print the elements of a linked list in python code example
Example: print a linked list in python
node = linked_list.head
while node:
print node.value
node = node.next
node = linked_list.head
while node:
print node.value
node = node.next