def printList(self):
    temp = self.head
    while temp:
        (print(temp.data),)
        temp = temp.next
def printList(self):
    temp = self.head
    while temp:
        (print(temp.data),)
        temp = temp.next