# Write a Python Library for Linked List # importing moduleimport collections# initialising a deque() of arbitary lengthlinked_lst = collections.deque()# filling deque() with elementslinked_lst.append('first')linked_lst.append('second')linked_lst.append('third')print("elements in the linked_list:")print(linked_lst)# adding element at an arbitary positionlinked_lst.insert(1, 'fourth')print("elements in the linked_list:")print(linked_lst)# deleting the last elementlinked_lst.pop()print("elements in the linked_list:")print(linked_lst)# removing a specific elementlinked_lst.remove('fourth')print("elements in the linked_list:")print(linked_lst)