class Node(object):

    def __init__(self, value, next=None):
        self.value = value
        self.next = next

    def __str__(self):
        curr = self
        stringOutput = ''
        while curr:
            stringOutput += str(curr.value)
            curr = curr.next
        return stringOutput


def list2linkedList(inputList):
    head = None
    for value in inputList:
        if not head:
            head = Node(value)
            curr = head
        else:
            curr.next = Node(value)
            curr = curr.next
    return head


print(list2linkedList([0, 1, 2]))

9b259b4154431a979a199b185888c33e9f2b2385
class Node(object):
    <mask token>

    def __str__(self):
        curr = self
        stringOutput = ''
        while curr:
            stringOutput += str(curr.value)
            curr = curr.next
        return stringOutput


<mask token>

class Node(object):

    def __init__(self, value, next=None):
        self.value = value
        self.next = next

    def __str__(self):
        curr = self
        stringOutput = ''
        while curr:
            stringOutput += str(curr.value)
            curr = curr.next
        return stringOutput


<mask token>

class Node(object):

    def __init__(self, value, next=None):
        self.value = value
        self.next = next

    def __str__(self):
        curr = self
        stringOutput = ''
        while curr:
            stringOutput += str(curr.value)
            curr = curr.next
        return stringOutput


def list2linkedList(inputList):
    head = None
    for value in inputList:
        if not head:
            head = Node(value)
            curr = head
        else:
            curr.next = Node(value)
            curr = curr.next
    return head


<mask token>

class Node(object):

    def __init__(self, value, next=None):
        self.value = value
        self.next = next

    def __str__(self):
        curr = self
        stringOutput = ''
        while curr:
            stringOutput += str(curr.value)
            curr = curr.next
        return stringOutput


def list2linkedList(inputList):
    head = None
    for value in inputList:
        if not head:
            head = Node(value)
            curr = head
        else:
            curr.next = Node(value)
            curr = curr.next
    return head


print(list2linkedList([0, 1, 2]))
