def test_kth_from_end2s():
    ll = LinkedList()
    ll.insert(0)
    ll.insert(1)
    ll.insert(2)
    ll.insert(3)
    ll.insert(4)
    ll.insert(5)
    assert ll.kth_from_end(3) == 2
def test_kth_from_end4():
    ll = LinkedList()
    with pytest.raises(Exception):
        assert ll.kth_from_end(5)
def test_kth_from_end1():
    ll = LinkedList()
    ll.insert(0)
    assert ll.kth_from_end(1) == 0