I was practicing my grip on dictionaries and then I came across this problem. I created a dictionary with a few keys and some keys have multiple values which were assigned using lists.
eg:
mypouch = { 'writing_stationery': ['Pens', 'Pencils'], 'gadgets': ['calculator', 'Watch'], 'Documents': ['ID Card', 'Hall Ticket'], 'Misc': ['Eraser', 'Sharpener', 'Sticky Notes'] } I want to delete a specific item 'Eraser'.
Usually I can just use pop or del function but the element is in a list. I want the output for misc as 'Misc':['Sharpener', 'Sticky Notes'] What are the possible solutions for this kind of a problem?