Algorithm For Linked List Operations Python W3schools