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