def create_nodes(lis):
    e = Node(lis[0])
    head = e
    for i in lis[1:]:
        e1 = Node(i)
        e.next = e1
        e = e1
    return head


cases = [[1], [1, 2], [1, 2, 2, 1], [1, 2, 3, 2, 1], [1, 1, 2, 1], [1, 0, 1, 1]
    ]
for c in cases:
    head = create_nodes(c)
    s.isPalindrome(head)

5ad25a91f83db46f4a991eb7507375a2f21a25a4
<mask token>

def create_nodes(lis):
    e = Node(lis[0])
    head = e
    for i in lis[1:]:
        e1 = Node(i)
        e.next = e1
        e = e1
    return head


<mask token>

def create_nodes(lis):
    e = Node(lis[0])
    head = e
    for i in lis[1:]:
        e1 = Node(i)
        e.next = e1
        e = e1
    return head


<mask token>
for c in cases:
    head = create_nodes(c)
    s.isPalindrome(head)

def create_nodes(lis):
    e = Node(lis[0])
    head = e
    for i in lis[1:]:
        e1 = Node(i)
        e.next = e1
        e = e1
    return head


cases = [[1], [1, 2], [1, 2, 2, 1], [1, 2, 3, 2, 1], [1, 1, 2, 1], [1, 0, 1, 1]
    ]
for c in cases:
    head = create_nodes(c)
    s.isPalindrome(head)
