Q. How is clear( ) function different from del <dict> statement?


Answer =

Clear () function delete the all keys and values in the dictionary and leave the dictionary empty.
While del <dict> delete the complete dictionary when we want to find deleted dictionary then it will give error that <dict> not defined.

1 Comments

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

  1. For Class 11 and 12 Computer Science with Python Solution and Notes visit www.studentspg.com

    ReplyDelete

Post a Comment

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

Previous Post Next Post