How would you implement a linked list in your preferred programming language?
Implement a mutable singly linked list supporting append, prepend, deletion of the first matching value, and traversal. The function receives operation dictionaries and returns one list snapshot for each to_list operation.
append, prepend, delete, or to_listappend, prepend, and delete operation contains an integer valueto_list operation is presentdef linked_list_operations(operations):