from the above code we can observe thatdel lets you delete individual items from dictionary by key clear deletes all items from dictionary sets set(is an unordered collection with no duplicate elements though individual items are immutableset itself is mutablethat is we can add or remove elements/items from the set we can perform mathematical operations like unionintersection etc with set though sets in general can be implemented using treesset in python can be implemented using hash table this allows it highly optimized method for checking whether specific element is contained in the set creating set set is created by placing all the items (elementsinside curly braces {}separated by comma or by using the built-in function set(observe the following lines of code#set of integers my_set { , , , print(my_set{ #set of mixed datatypes my_set { "hello world!"( )print(my_set{ ( )'hello world!'methods for sets observe the following code to understand about methods for sets#methods for sets #add(xmethod topics {'python''java'' #'topics add(' ++'topics {' #'' ++''java''python'#union(smethodreturns union of two set