Hey, @Kanishka,
Suppose your dict contains:
a={'A' : 2 , 'K' : 4 , 'D' : 6}
- If you want to print then do below shown:
a={'A' : 2 , 'K' : 4 , 'D' : 6}
print(a)
del a['D']
print(a)
You will get this output
a={'A' : 2 , 'K' : 4}
a.clear()
print(a)
{}
I hope this step wise explanation will help you