Question: linked_list_shopping_list_manager.py This is a file that includes the class of linked list based shopping list manager. This class contains such methods as init, insert_item, print_items,
linked_list_shopping_list_manager.py This is a file that includes the class of linked list based shopping list manager. This class contains such methods as init, insert_item, print_items, delete_item, get_last_item, selection_sort. In addition, this class requires the inner class to hold onto data as a linked list. Please keep in mind the following notes for each method during implementation: Init(): initializes linked list object to be used throughout object life. insert_item(item): inserts item at the front of the linked list. Parameters: item name. print_items(): simply prints item throughout linked list. Note that try to print as [ item1 item2 ] by using some combinations of print(item, end = " "). delete_item(item): deletes item. Parameters: item name. get_last_item(): returns the last item name from the linked list. find_smallest(): returns the smallest item from linked list. (ex. [ apple banana cheese] -> apple is smallest)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
