Write a program to print the elements of a singly linked list 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