if (headval =none)return prev next headval next headval none def llistprint(self)printval self head while (printval)print(printval data)printval printval next llist slinkedlist(llist atbegining("mon"llist atbegining("tue"llist atbegining("wed"llist atbegining("thu"llist removenode("tue"llist llistprint(when the above code is executedit produces the following resultthu wed mon