Q. How is del D and del D[<key>] different from one another if D is a dictionary?


Answer =

del D delete the all dictionary so that when we want to find the value of D then it will give error tat D is not defined.
Where del D[<key>] delete the particular key which is given by user.

3 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post