# Problem
# https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list/problem
# Score: 5.00 points

# ---------------------------------------------------------
# Solution:

# class SinglyLinkedListNode:
    # def __init__(self, node_data):
        # self.data = node_data
        # self.next = None

# class SinglyLinkedList:
    # def __init__(self):
        # self.head = None
        # self.tail = None

    # def insert_node(self, node_data):
        # node = SinglyLinkedListNode(node_data)

        # if not self.head:
            # self.head = node
        # else:
            # self.tail.next = node


        # self.tail = node


def printLinkedList(head):
    node = head
    while node != None:
        print(node.data)
        node = node.next

# ---------------------------------------------------------


