8 -> 4 -> 6 ->2 

def insert_end(linked_list, value):
    # Create a new node
    new_node = Node(value)

    # Traverse to the end of the linked list
    curr = linked_list
    while curr.next is not None:
        curr = curr.next

    # Insert new node at the end of the linked list
    curr.next = new_node
Elenco collegato = 8 -&gt; 4 -&gt; 6 Valore = 2
Inserisci un dato valore alla fine dell'elenco collegato dato.